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")