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

Function TestRegistry_ReadFile_Found

internal/plugins/plugins_test.go:196–202  ·  view source on GitHub ↗

--------------------------------------------------------------------------- pluginRegistry.ReadFile / Open / Stat NOTE: these methods range over the package-level `registry` global, not the receiver, so tests must install the plugin into that global. -------------------------------------------------

(t *testing.T)

Source from the content-addressed store, hash-verified

194// ---------------------------------------------------------------------------
195
196func TestRegistry_ReadFile_Found(t *testing.T) {
197 withRegistryPlugin(t)
198
199 b, err := registry.ReadFile("html/public/index.html")
200 require.NoError(t, err)
201 assert.Contains(t, string(b), "hello")
202}
203
204func TestRegistry_ReadFile_NotFound(t *testing.T) {
205 withRegistryPlugin(t)

Callers

nothing calls this directly

Calls 2

withRegistryPluginFunction · 0.85
ReadFileMethod · 0.45

Tested by

no test coverage detected