(t *testing.T)
| 97 | } |
| 98 | |
| 99 | func TestSourceEntitiesNoFile(t *testing.T) { |
| 100 | fs := testTempFileSource(t) |
| 101 | defer os.RemoveAll(string(fs)) |
| 102 | |
| 103 | rcs, err := fs.Entities(entity.EntityReplicationController) |
| 104 | assert.NoError(t, err) |
| 105 | assert.Len(t, rcs, 0) |
| 106 | |
| 107 | pods, err := fs.Entities(entity.EntityPod) |
| 108 | assert.NoError(t, err) |
| 109 | assert.Len(t, pods, 0) |
| 110 | |
| 111 | containers, err := fs.Entities(entity.EntityContainer) |
| 112 | assert.NoError(t, err) |
| 113 | assert.Len(t, containers, 0) |
| 114 | |
| 115 | images, err := fs.Entities(entity.EntityImage) |
| 116 | assert.NoError(t, err) |
| 117 | assert.Len(t, images, 0) |
| 118 | } |
| 119 | |
| 120 | func TestSourceEntitiesEmptyFile(t *testing.T) { |
| 121 | fs := testTempFileSource(t) |
nothing calls this directly
no test coverage detected