(t *testing.T)
| 97 | } |
| 98 | |
| 99 | func 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. |
nothing calls this directly
no test coverage detected