git-subtree-dir: ts git-subtree-mainline: 92528599badd9da7f5b10d64f10186a1646bb520 git-subtree-split: 7530d353fdefcc59d83c3c8ebea0a147dcbab234
18 lines
259 B
Go
18 lines
259 B
Go
package ts
|
|
|
|
import (
|
|
"bytes"
|
|
"encoding/hex"
|
|
"testing"
|
|
)
|
|
|
|
func TestWriteTSHeader(t *testing.T) {
|
|
bw := &bytes.Buffer{}
|
|
w := &TSWriter{
|
|
W: bw,
|
|
PCR: 0x12345678,
|
|
}
|
|
w.Write([]byte{'h', 'e', 'l', 'o'}[:], false)
|
|
t.Logf("\n%s", hex.Dump(bw.Bytes()))
|
|
}
|