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

Function TestPluginFiles_Stat_BackslashPath

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

Source from the content-addressed store, hash-verified

179}
180
181func TestPluginFiles_Stat_BackslashPath(t *testing.T) {
182 p := newTestPlugin(t)
183
184 nativePath := filepath.Join("items", "test-sword.yaml")
185 info, err := p.files.Stat(nativePath)
186 require.NoError(t, err)
187 assert.Equal(t, "test-sword.yaml", info.Name())
188}
189
190// ---------------------------------------------------------------------------
191// pluginRegistry.ReadFile / Open / Stat

Callers

nothing calls this directly

Calls 3

newTestPluginFunction · 0.85
StatMethod · 0.45
NameMethod · 0.45

Tested by

no test coverage detected