--------------------------------------------------------------------------- pluginRegistry.ReadFile / Open / Stat NOTE: these methods range over the package-level `registry` global, not the receiver, so tests must install the plugin into that global. -------------------------------------------------
(t *testing.T)
| 194 | // --------------------------------------------------------------------------- |
| 195 | |
| 196 | func TestRegistry_ReadFile_Found(t *testing.T) { |
| 197 | withRegistryPlugin(t) |
| 198 | |
| 199 | b, err := registry.ReadFile("html/public/index.html") |
| 200 | require.NoError(t, err) |
| 201 | assert.Contains(t, string(b), "hello") |
| 202 | } |
| 203 | |
| 204 | func TestRegistry_ReadFile_NotFound(t *testing.T) { |
| 205 | withRegistryPlugin(t) |
nothing calls this directly
no test coverage detected