Пример #1
0
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)
}
Пример #2
0
func getConverter(t *testing.T) *sqltocsv.Converter {
	return sqltocsv.New(getTestRows(t))
}