Double-slash paths must also be tolerated.
(t *testing.T)
| 118 | |
| 119 | // Double-slash paths must also be tolerated. |
| 120 | func 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 |
nothing calls this directly
no test coverage detected