(t *testing.T)
| 37 | } |
| 38 | |
| 39 | func TestSourceObjectsEmptyKubeDir(t *testing.T) { |
| 40 | fs := testTempFileSource(t) |
| 41 | defer os.RemoveAll(string(fs)) |
| 42 | |
| 43 | kubeDir := path.Join(string(fs), ObjectsDir) |
| 44 | err := os.Mkdir(kubeDir, 0777) |
| 45 | if err != nil { |
| 46 | t.Fatal(err) |
| 47 | } |
| 48 | |
| 49 | objects, err := fs.Objects() |
| 50 | assert.NoError(t, err, "should be okay") |
| 51 | assert.Len(t, objects, 0, "should not have any objects") |
| 52 | } |
| 53 | |
| 54 | func TestSourceObjectsKubeDir(t *testing.T) { |
| 55 | fs := testTempFileSource(t) |
nothing calls this directly
no test coverage detected