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

Function TestPluginFiles_ReadFile_Found

internal/plugins/plugins_test.go:83–89  ·  view source on GitHub ↗

--------------------------------------------------------------------------- PluginFiles.ReadFile ---------------------------------------------------------------------------

(t *testing.T)

Source from the content-addressed store, hash-verified

81// ---------------------------------------------------------------------------
82
83func TestPluginFiles_ReadFile_Found(t *testing.T) {
84 p := newTestPlugin(t)
85
86 b, err := p.files.ReadFile("html/public/index.html")
87 require.NoError(t, err)
88 assert.Contains(t, string(b), "hello")
89}
90
91func TestPluginFiles_ReadFile_DataOverlay(t *testing.T) {
92 p := newTestPlugin(t)

Callers

nothing calls this directly

Calls 2

newTestPluginFunction · 0.85
ReadFileMethod · 0.45

Tested by

no test coverage detected