(t *testing.T)
| 134 | } |
| 135 | |
| 136 | func 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 | |
| 148 | func TestAudioLoaderLoadMP3(t *testing.T) { |
| 149 | engo.Files.SetRoot("testdata") |
nothing calls this directly
no test coverage detected