From 9b5eb558ef3e6c0f02bc2679850ac3d1b0007c95 Mon Sep 17 00:00:00 2001 From: saxon Date: Wed, 6 Feb 2019 00:01:17 +1030 Subject: [PATCH] stream/mts/meta/meta_test.go: Updated func comment for TestReadFrom --- stream/mts/meta/meta_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stream/mts/meta/meta_test.go b/stream/mts/meta/meta_test.go index 6d98fe0f..700fda5b 100644 --- a/stream/mts/meta/meta_test.go +++ b/stream/mts/meta/meta_test.go @@ -147,6 +147,8 @@ func TestEncode(t *testing.T) { } } +// TestReadFrom checks that we can correctly obtain a value for a partiular key +// from a string of metadata using the ReadFrom func. func TestReadFrom(t *testing.T) { tstMeta := append([]byte{0x00, 0x10, 0x00, 0x12}, "loc=a,b,c\tts=12345"...) got, err := ReadFrom([]byte(tstMeta), "loc")