MCPcopy
hub / github.com/ebitengine/oto / TestMain

Function TestMain

oto_test.go:28–40  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

26var theContext *oto.Context
27
28func 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
42func TestEmptyPlayer(t *testing.T) {
43 bs := bytes.NewReader(make([]byte, 0))

Callers

nothing calls this directly

Calls 1

RunMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…