func TestPostgresBinding(t *testing.T) { binding := nodes.Binding() expected := "$1" if got, _ := postgres.Accept(binding); expected != got { t.Errorf("TestPostgresBinding was expected to return %s, got %s", expected, got) } }
func TestBinding(t *testing.T) { binding := nodes.Binding() result, _ := sql.Accept(binding) if "?" != result { t.Errorf("TestStar was expected to return ?, got %s", result) } }