stream/mts/metaEncode_test.go: wrote function comments for tests

This commit is contained in:
saxon 2019-02-07 10:55:58 +10:30
parent bb032778c6
commit 7a7be5580d
1 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,9 @@ const (
const fps = 25 const fps = 25
// TestMetaEncode1 checks that we can externally add a single metadata entry to
// the mts global Meta meta.Data struct and then successfully have the mts encoder
// write this to psi.
func TestMetaEncode1(t *testing.T) { func TestMetaEncode1(t *testing.T) {
Meta = meta.New() Meta = meta.New()
var b []byte var b []byte
@ -68,6 +71,9 @@ func TestMetaEncode1(t *testing.T) {
} }
} }
// TestMetaEncode2 checks that we can externally add two metadata entries to the
// Meta meta.Data global and then have the mts encoder successfully encode this
// into psi.
func TestMetaEncode2(t *testing.T) { func TestMetaEncode2(t *testing.T) {
Meta = meta.New() Meta = meta.New()
var b []byte var b []byte