(t *testing.T)
| 35 | } |
| 36 | |
| 37 | func TestNewCIDFileWhenFileAlreadyExists(t *testing.T) { |
| 38 | tempfile := fs.NewFile(t, "test-cid-file") |
| 39 | defer tempfile.Remove() |
| 40 | |
| 41 | _, err := newCIDFile(tempfile.Path()) |
| 42 | assert.ErrorContains(t, err, "container ID file found") |
| 43 | } |
| 44 | |
| 45 | func TestCIDFileCloseWithNoWrite(t *testing.T) { |
| 46 | // Closing should remove the file if it was not written to. |
nothing calls this directly
no test coverage detected
searching dependent graphs…