(t *testing.T)
| 215 | } |
| 216 | |
| 217 | func TestAudioPlayerURL(t *testing.T) { |
| 218 | engo.Files.SetRoot("testdata") |
| 219 | if err := engo.Files.Load("1.ogg"); err != nil { |
| 220 | t.Errorf("Could not load file. Error was: %v\n", err) |
| 221 | } |
| 222 | p, err := LoadedPlayer("1.ogg") |
| 223 | if err != nil { |
| 224 | t.Errorf("Could not get player. Error was: %v\n", err) |
| 225 | } |
| 226 | if p.URL() != "1.ogg" { |
| 227 | t.Errorf("Wrong URL reported from player. Wanted: %v\nGot: %v\n", "1.ogg", p.URL()) |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | func TestAudioPlayerClose(t *testing.T) { |
| 232 | engo.Files.SetRoot("testdata") |
nothing calls this directly
no test coverage detected