(m *testing.M)
| 26 | var theContext *oto.Context |
| 27 | |
| 28 | func TestMain(m *testing.M) { |
| 29 | op := &oto.NewContextOptions{} |
| 30 | op.SampleRate = 48000 |
| 31 | op.ChannelCount = 2 |
| 32 | op.Format = oto.FormatFloat32LE |
| 33 | ctx, ready, err := oto.NewContext(op) |
| 34 | if err != nil { |
| 35 | panic(err) |
| 36 | } |
| 37 | <-ready |
| 38 | theContext = ctx |
| 39 | os.Exit(m.Run()) |
| 40 | } |
| 41 | |
| 42 | func TestEmptyPlayer(t *testing.T) { |
| 43 | bs := bytes.NewReader(make([]byte, 0)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…