MCPcopy Create free account
hub / github.com/EngoEngine/engo / TestAudioLoaderLoadOgg

Function TestAudioLoaderLoadOgg

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

Source from the content-addressed store, hash-verified

122}
123
124func TestAudioLoaderLoadOgg(t *testing.T) {
125 engo.Files.SetRoot("testdata")
126 if err := engo.Files.Load("1.ogg"); err != nil {
127 t.Errorf("Error while loading. Error: %v", err)
128 }
129 _, err := LoadedPlayer("1.ogg")
130 if err != nil {
131 t.Errorf("Error while getting LoadedPlayer for ogg. Error: %v", err)
132 return
133 }
134}
135
136func TestAudioLoaderLoadWav(t *testing.T) {
137 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