(t *testing.T)
| 98 | } |
| 99 | |
| 100 | func TestLoaderListPathWithError(t *testing.T) { |
| 101 | if _, _, err := ListPath("/dev/random"); err == nil { |
| 102 | t.Fatal("expected an error") |
| 103 | } else if _, _, err := ListPath("/lulzlulz"); err == nil { |
| 104 | t.Fatal("expected an error") |
| 105 | } else if !canWriteOnRoot() { |
| 106 | // on docker this check is skipped |
| 107 | if _, _, err := ListPath("/root"); err == nil { |
| 108 | t.Fatal("expected permission denied") |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | func TestLoaderLoad(t *testing.T) { |
| 114 | setupRawRecords(t) |
nothing calls this directly
no test coverage detected