MCPcopy
hub / github.com/EngoEngine/engo / TestAudioLoaderLoadWav

Function TestAudioLoaderLoadWav

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

Source from the content-addressed store, hash-verified

134}
135
136func TestAudioLoaderLoadWav(t *testing.T) {
137 engo.Files.SetRoot("testdata")
138 if err := engo.Files.Load("sfx_coin_double2.wav"); err != nil {
139 t.Errorf("Error while loading. Error: %v", err)
140 }
141 _, err := LoadedPlayer("sfx_coin_double2.wav")
142 if err != nil {
143 t.Errorf("Error while getting LoadedPlayer for wav. Error: %v", err)
144 return
145 }
146}
147
148func TestAudioLoaderLoadMP3(t *testing.T) {
149 engo.Files.SetRoot("testdata")

Callers

nothing calls this directly

Calls 3

LoadedPlayerFunction · 0.85
SetRootMethod · 0.65
LoadMethod · 0.65

Tested by

no test coverage detected