MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / TestRegistry_Stat_Found

Function TestRegistry_Stat_Found

internal/plugins/plugins_test.go:226–232  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

224}
225
226func TestRegistry_Stat_Found(t *testing.T) {
227 withRegistryPlugin(t)
228
229 info, err := registry.Stat("items/test-sword.yaml")
230 require.NoError(t, err)
231 assert.Equal(t, "test-sword.yaml", info.Name())
232}
233
234func TestRegistry_Stat_NotFound(t *testing.T) {
235 withRegistryPlugin(t)

Callers

nothing calls this directly

Calls 3

withRegistryPluginFunction · 0.85
StatMethod · 0.45
NameMethod · 0.45

Tested by

no test coverage detected