MCPcopy Index your code
hub / github.com/EngoEngine/engo / TestAudioLoaderLoadMP3

Function TestAudioLoaderLoadMP3

common/audio_test.go:148–158  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

146}
147
148func TestAudioLoaderLoadMP3(t *testing.T) {
149 engo.Files.SetRoot("testdata")
150 if err := engo.Files.Load("TripleShot.mp3"); err != nil {
151 t.Errorf("Error while loading. Error: %v", err)
152 }
153 _, err := LoadedPlayer("TripleShot.mp3")
154 if err != nil {
155 t.Errorf("Error while getting LoadedPlayer. Error: %v", err)
156 return
157 }
158}
159
160type testReader struct {
161 readError bool

Callers

nothing calls this directly

Calls 3

LoadedPlayerFunction · 0.85
SetRootMethod · 0.65
LoadMethod · 0.65

Tested by

no test coverage detected