Skip to content

Commit

Permalink
test: minimal tests for generic container
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbee committed Nov 9, 2024
1 parent 9c91f67 commit fb159b9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions mp4/container_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package mp4

import (
"bytes"
"testing"
)

func TestGenericContainer(t *testing.T) {
// Just check that it doesn't crash
c := NewGenericContainerBox("test")
c.AddChild(&VsidBox{SourceID: 42})
w := bytes.Buffer{}
err := c.Encode(&w)
if err != nil {
t.Error(err)
}
err = c.Info(&w, "", "", " ")
if err != nil {
t.Error(err)
}
}

0 comments on commit fb159b9

Please sign in to comment.