(t *testing.T)
| 78 | } |
| 79 | |
| 80 | func TestExportExistingFile(t *testing.T) { |
| 81 | contextFile := filepath.Join(t.TempDir(), "exported") |
| 82 | cli := makeFakeCli(t) |
| 83 | cli.ErrBuffer().Reset() |
| 84 | assert.NilError(t, os.WriteFile(contextFile, []byte{}, 0o644)) |
| 85 | err := runExport(cli, "test", contextFile) |
| 86 | assert.Assert(t, os.IsExist(err)) |
| 87 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…