package main import "testing" func TestParseFile(t *testing.T) { // assertCorrectMessage := func(t *testing.T, got, want string) { // t.Helper() // if got != want { // t.Errorf("got %q want %q", got, want) // } // } // t.Run("Error is fileName os empty", func(t *testing.T) { // got := ParseFile("").Error() // want := "Empty file path" // assertCorrectMessage(t, got, want) // }) // t.Run("No error", func(t *testing.T) { // got := ParseFile("test.csv") // if got != nil { // assertCorrectMessage(t, "nil", "nil") // } // }) }