2
0
Cleanups suggested by gometalinter tools.
This commit is contained in:
Martin Hamrle
2016-08-30 19:59:16 +02:00
parent 2508faa9ce
commit 9f6b99e332
14 changed files with 84 additions and 90 deletions
+3 -2
View File
@@ -1,16 +1,17 @@
package pgx_test
import (
"github.com/jackc/pgx"
"strconv"
"testing"
"github.com/jackc/pgx"
)
func TestQueryArgs(t *testing.T) {
var qa pgx.QueryArgs
for i := 1; i < 512; i++ {
expectedPlaceholder := "$" + strconv.FormatInt(int64(i), 10)
expectedPlaceholder := "$" + strconv.Itoa(i)
placeholder := qa.Append(i)
if placeholder != expectedPlaceholder {
t.Errorf(`Expected qa.Append to return "%s", but it returned "%s"`, expectedPlaceholder, placeholder)