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

Function TestPluginFiles_ReadFile_DoubleSlash

internal/plugins/plugins_test.go:120–126  ·  view source on GitHub ↗

Double-slash paths must also be tolerated.

(t *testing.T)

Source from the content-addressed store, hash-verified

118
119// Double-slash paths must also be tolerated.
120func TestPluginFiles_ReadFile_DoubleSlash(t *testing.T) {
121 p := newTestPlugin(t)
122
123 b, err := p.files.ReadFile("html//public//index.html")
124 require.NoError(t, err)
125 assert.Contains(t, string(b), "hello")
126}
127
128// ---------------------------------------------------------------------------
129// PluginFiles.Open

Callers

nothing calls this directly

Calls 2

newTestPluginFunction · 0.85
ReadFileMethod · 0.45

Tested by

no test coverage detected