MCPcopy
hub / github.com/apache/devlake / TestWrongCsvPath

Function TestWrongCsvPath

backend/helpers/pluginhelper/csv_file_test.go:44–53  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

42}
43
44func TestWrongCsvPath(t *testing.T) {
45 tmpPath := t.TempDir()
46 filename := fmt.Sprintf(`%s/foobar.txt`, tmpPath)
47 println(filename)
48
49 _, err := NewCsvFileWriter(filename, []string{})
50 if err == nil {
51 t.Fatal("the code did not return error")
52 }
53}

Callers

nothing calls this directly

Calls 2

NewCsvFileWriterFunction · 0.85
FatalMethod · 0.80

Tested by

no test coverage detected