dedis / protobuf

Reflection-based Protocol Buffers for Go
GNU General Public License v2.0
76 stars 15 forks source link

Fix map encoding #45

Closed kc1212 closed 6 years ago

kc1212 commented 6 years ago

The map encoding function should encode map entries like below, as described in the comments

            message MapFieldEntry {
                key_type key = 1;
                value_type value = 2;
            }

but it doesn't currently do it and this PR fixes it.

Also fix missing tests for encoding maps.

ineiti commented 6 years ago

This makes my day - +100!