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

Function TestPluginFiles_ReadFile_DataOverlay

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

Source from the content-addressed store, hash-verified

89}
90
91func TestPluginFiles_ReadFile_DataOverlay(t *testing.T) {
92 p := newTestPlugin(t)
93
94 b, err := p.files.ReadFile("data-overlays/config.yaml")
95 require.NoError(t, err)
96 assert.Contains(t, string(b), "somekey")
97}
98
99func TestPluginFiles_ReadFile_NotFound(t *testing.T) {
100 p := newTestPlugin(t)

Callers

nothing calls this directly

Calls 2

newTestPluginFunction · 0.85
ReadFileMethod · 0.45

Tested by

no test coverage detected