MCPcopy
hub / github.com/EngoEngine/engo / TestFilesResourceNoFileLoader

Function TestFilesResourceNoFileLoader

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

Source from the content-addressed store, hash-verified

187}
188
189func TestFilesResourceNoFileLoader(t *testing.T) {
190 expected := "no `FileLoader` associated with this extension:"
191 if _, err := Files.Resource("test.wrongExtension"); err == nil {
192 t.Error("did not report error retrieving a resource without an associated file loader")
193 } else if !strings.HasPrefix(err.Error(), expected) {
194 t.Errorf("wrong error returned retrieving a resource without an associated file loader. want: %v, got: %v", expected, err.Error())
195 }
196}

Callers

nothing calls this directly

Calls 2

ResourceMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected