(t *testing.T)
| 26 | ) |
| 27 | |
| 28 | func TestCIDFileNoOPWithNoFilename(t *testing.T) { |
| 29 | file, err := newCIDFile("") |
| 30 | assert.NilError(t, err) |
| 31 | assert.DeepEqual(t, &cidFile{}, file, cmp.AllowUnexported(cidFile{})) |
| 32 | |
| 33 | assert.NilError(t, file.Write("id")) |
| 34 | assert.NilError(t, file.Close()) |
| 35 | } |
| 36 | |
| 37 | func TestNewCIDFileWhenFileAlreadyExists(t *testing.T) { |
| 38 | tempfile := fs.NewFile(t, "test-cid-file") |
nothing calls this directly
no test coverage detected
searching dependent graphs…