diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-02-14 12:22:25 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-02-14 12:23:10 -0800 |
commit | 50c493193b72997a6b09f353fd9217349941c494 (patch) | |
tree | 57950ebc829aa850b49e7096bca405df7b3e1540 /pkg/p9/messages_test.go | |
parent | 3c26f5ecb0087337b1f194b6d429ce68f3af70eb (diff) |
Un-export p9 message encode/decode functions.
These are not used outside of the p9 package.
PiperOrigin-RevId: 295200052
Diffstat (limited to 'pkg/p9/messages_test.go')
-rw-r--r-- | pkg/p9/messages_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/p9/messages_test.go b/pkg/p9/messages_test.go index 825c939da..c20324404 100644 --- a/pkg/p9/messages_test.go +++ b/pkg/p9/messages_test.go @@ -382,7 +382,7 @@ func TestEncodeDecode(t *testing.T) { // Encode the original. data := make([]byte, initialBufferLength) buf := buffer{data: data[:0]} - enc.Encode(&buf) + enc.encode(&buf) // Create a new object, same as the first. enc2 := reflect.New(reflect.ValueOf(enc).Elem().Type()).Interface().(encoder) @@ -399,7 +399,7 @@ func TestEncodeDecode(t *testing.T) { } // Mark sure it was okay. - enc2.Decode(&buf2) + enc2.decode(&buf2) if buf2.isOverrun() { t.Errorf("object %#v->%#v got overrun on decode", enc, enc2) continue |