ugly but better than writing platform specific implementations
()
| 65 | |
| 66 | // ugly but better than writing platform specific implementations |
| 67 | func canWriteOnRoot() bool { |
| 68 | testFile := "/root/.sum.w.test" |
| 69 | if err := ioutil.WriteFile(testFile, []byte{0x00}, 0755); err == nil { |
| 70 | os.Remove(testFile) |
| 71 | return true |
| 72 | } |
| 73 | return false |
| 74 | } |
| 75 | |
| 76 | func TestLoaderListPath(t *testing.T) { |
| 77 | setupRawRecords(t) |
no outgoing calls
no test coverage detected