(t *testing.T)
| 40 | } |
| 41 | |
| 42 | func TestWriteFileEmptyPath(t *testing.T) { |
| 43 | if WriteFile("", "x") != "(empty path)" { |
| 44 | t.Fatal("empty path handling wrong") |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | // TestWriteFileMkdirErrorWhenParentIsFile checks the (mkdir error) branch: a |
| 49 | // MkdirAll failure must surface in the output string (bash convention), never |
nothing calls this directly
no test coverage detected