(t *testing.T)
| 164 | } |
| 165 | |
| 166 | func TestFilesUnload(t *testing.T) { |
| 167 | Files.Register(".test", &testLoader{}) |
| 168 | if err := Files.Unload("test.test"); err != nil { |
| 169 | t.Errorf("unable to unload a file. error: %v", err) |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | func TestFilesUnloadNoFileLoader(t *testing.T) { |
| 174 | expected := "no `FileLoader` associated with this extension:" |