MCPcopy Index your code
hub / github.com/EngoEngine/engo / TestFilesResource

Function TestFilesResource

assets_test.go:182–187  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

180}
181
182func TestFilesResource(t *testing.T) {
183 Files.Register(".test", &testLoader{})
184 if _, err := Files.Resource("test.test"); err != nil {
185 t.Errorf("unable to fetch a resource. error: %v", err)
186 }
187}
188
189func TestFilesResourceNoFileLoader(t *testing.T) {
190 expected := "no `FileLoader` associated with this extension:"

Callers

nothing calls this directly

Calls 2

ResourceMethod · 0.65
RegisterMethod · 0.45

Tested by

no test coverage detected