Explorar o código

fixed test to use un exported shouldPrepare

Harpreet Sawhney %!s(int64=11) %!d(string=hai) anos
pai
achega
1c13825d08
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cass1batch_test.go

+ 1 - 1
cass1batch_test.go

@@ -50,7 +50,7 @@ func TestShouldPrepareFunction(t *testing.T) {
 
 
 	for _, test := range shouldPrepareTests {
 	for _, test := range shouldPrepareTests {
 		q := &Query{stmt: test.Stmt}
 		q := &Query{stmt: test.Stmt}
-		if got := q.ShouldPrepare(); got != test.Result {
+		if got := q.shouldPrepare(); got != test.Result {
 			t.Fatalf("%q: got %v, expected %v\n", test.Stmt, got, test.Result)
 			t.Fatalf("%q: got %v, expected %v\n", test.Stmt, got, test.Result)
 		}
 		}
 	}
 	}