Exemplo n.º 1
0
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)
	}
}
Exemplo n.º 2
0
func TestBinding(t *testing.T) {
	binding := nodes.Binding()
	result, _ := sql.Accept(binding)
	if "?" != result {
		t.Errorf("TestStar was expected to return ?, got %s", result)
	}
}