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

Function TestPluginFiles_ReadFile_NotFound

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

Source from the content-addressed store, hash-verified

97}
98
99func TestPluginFiles_ReadFile_NotFound(t *testing.T) {
100 p := newTestPlugin(t)
101
102 _, err := p.files.ReadFile("nonexistent/file.txt")
103 assert.True(t, errors.Is(err, fs.ErrNotExist))
104}
105
106// ReadFile must normalise backslash paths (Windows-style) to forward slashes
107// so that the lookup against the embed.FS key succeeds on all platforms.

Callers

nothing calls this directly

Calls 2

newTestPluginFunction · 0.85
ReadFileMethod · 0.45

Tested by

no test coverage detected