Test ScanArgError

pull/35/head
Igor Melo 2023-01-30 03:01:49 -03:00
parent c676e8f799
commit ce5c0f2890
1 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,15 @@ import (
"github.com/vingarcia/ksql/sqldialect" "github.com/vingarcia/ksql/sqldialect"
) )
func TestScanArgError(t *testing.T) {
err := ScanArgError{
ColumnIndex: 12,
Err: io.EOF,
}
tt.AssertErrContains(t, err, "input attribute", "index 12", "EOF")
}
func TestConfigSetDefaultValues(t *testing.T) { func TestConfigSetDefaultValues(t *testing.T) {
config := Config{} config := Config{}
config.SetDefaultValues() config.SetDefaultValues()