Skip to content

Commit

Permalink
fix go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul2393 committed May 17, 2023
1 parent bf440e9 commit f193d5a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions spanner/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4391,8 +4391,8 @@ func TestIntegration_Bit_Reversed_Sequence(t *testing.T) {
}
counter := int64(0)
for i := 0; i < 3; i++ {
newId, newCounter := values[i][0].(int64), values[i][1].(int64)
if newId <= 0 {
newID, newCounter := values[i][0].(int64), values[i][1].(int64)
if newID <= 0 {
return errors.New("expected id1, id2, id3 > 0")

}
Expand Down Expand Up @@ -4454,8 +4454,8 @@ func TestIntegration_Bit_Reversed_Sequence(t *testing.T) {
}
counter := int64(0)
for i := 0; i < 100; i++ {
newId, newCounter := values[i][0].(int64), values[i][1].(int64)
if newId <= 0 || newId < 4611686018427387904 {
newID, newCounter := values[i][0].(int64), values[i][1].(int64)
if newID <= 0 || newID < 4611686018427387904 {
return errors.New("expected d1, id2, id3, …., id100 > 4611686018427387904")

}
Expand Down Expand Up @@ -4494,8 +4494,8 @@ func TestIntegration_Bit_Reversed_Sequence(t *testing.T) {
}
counter := int64(0)
for i := 0; i < 3; i++ {
newId, newBrID, newCounter := values[i][0].(int64), values[i][1].(int64), values[i][2].(int64)
if newId <= 0 {
newID, newBrID, newCounter := values[i][0].(int64), values[i][1].(int64), values[i][2].(int64)
if newID <= 0 {
return errors.New("expected id > 0")
}
if newBrID < 10001 {
Expand Down Expand Up @@ -4902,7 +4902,7 @@ func readAllAccountsTable(iter *RowIterator) ([][]interface{}, error) {
}
}

func readAllBitReversedSeqTable(iter *RowIterator, onlyIdCounter bool) ([][]interface{}, error) {
func readAllBitReversedSeqTable(iter *RowIterator, onlyIDCounter bool) ([][]interface{}, error) {
defer iter.Stop()
var vals [][]interface{}
for {
Expand All @@ -4913,20 +4913,20 @@ func readAllBitReversedSeqTable(iter *RowIterator, onlyIdCounter bool) ([][]inte
if err != nil {
return nil, err
}
var id, brId, counter int64
if onlyIdCounter {
var id, brID, counter int64
if onlyIDCounter {
err = row.Columns(&id, &counter)
if err != nil {
return nil, err
}
vals = append(vals, []interface{}{id, counter})
continue
}
err = row.Columns(&id, &brId, &counter)
err = row.Columns(&id, &brID, &counter)
if err != nil {
return nil, err
}
vals = append(vals, []interface{}{id, brId, counter})
vals = append(vals, []interface{}{id, brID, counter})
}
}

Expand Down

0 comments on commit f193d5a

Please sign in to comment.