TODO: Add tests for entities in wrong folders
(t *testing.T)
| 87 | // TODO: Add tests for entities in wrong folders |
| 88 | |
| 89 | func TestSourceInvalidEntity(t *testing.T) { |
| 90 | fs := testTempFileSource(t) |
| 91 | defer os.RemoveAll(string(fs)) |
| 92 | |
| 93 | // create an invalid entity.Type |
| 94 | invalidEntityType := entity.Type(42) |
| 95 | _, err := fs.Entities(invalidEntityType) |
| 96 | assert.EqualError(t, err, ErrInvalidType.Error(), "should error for invalid entity types") |
| 97 | } |
| 98 | |
| 99 | func TestSourceEntitiesNoFile(t *testing.T) { |
| 100 | fs := testTempFileSource(t) |
nothing calls this directly
no test coverage detected