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

Function TestPluginFiles_Stat_Found

internal/plugins/plugins_test.go:165–172  ·  view source on GitHub ↗

--------------------------------------------------------------------------- PluginFiles.Stat ---------------------------------------------------------------------------

(t *testing.T)

Source from the content-addressed store, hash-verified

163// ---------------------------------------------------------------------------
164
165func TestPluginFiles_Stat_Found(t *testing.T) {
166 p := newTestPlugin(t)
167
168 info, err := p.files.Stat("items/test-sword.yaml")
169 require.NoError(t, err)
170 assert.Equal(t, "test-sword.yaml", info.Name())
171 assert.Greater(t, info.Size(), int64(0))
172}
173
174func TestPluginFiles_Stat_NotFound(t *testing.T) {
175 p := newTestPlugin(t)

Callers

nothing calls this directly

Calls 3

newTestPluginFunction · 0.85
StatMethod · 0.45
NameMethod · 0.45

Tested by

no test coverage detected