func TestConvertingNilValueShouldReturnEmptyString(t *testing.T) { converter := sqltocsv.New(getTestRowsByQuery(t, "SELECT|people|name,nickname,age|")) expected := "name,nickname,age\nAlice,\"\",1\n" actual := converter.String() assertCsvMatch(t, expected, actual) }
func getConverter(t *testing.T) *sqltocsv.Converter { return sqltocsv.New(getTestRows(t)) }