--------------------------------------------------------------------------- PluginFiles.Stat ---------------------------------------------------------------------------
(t *testing.T)
| 163 | // --------------------------------------------------------------------------- |
| 164 | |
| 165 | func TestPluginFiles_Stat_Found(t *testing.T) { |
| 166 | p := newTestPlugin(t) |
| 167 | |
| 168 | info, err := p.files.Stat("items/test-sword.yaml") |
| 169 | require.NoError(t, err) |
| 170 | assert.Equal(t, "test-sword.yaml", info.Name()) |
| 171 | assert.Greater(t, info.Size(), int64(0)) |
| 172 | } |
| 173 | |
| 174 | func TestPluginFiles_Stat_NotFound(t *testing.T) { |
| 175 | p := newTestPlugin(t) |
nothing calls this directly
no test coverage detected