File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1335,9 +1335,7 @@ func TestAnonymousStructPr(t *testing.T) {
1335
1335
}
1336
1336
1337
1337
func TestAnonymousStructPrError (t * testing.T ) {
1338
-
1339
1338
dbtest .RunTest (t , func (db * sql.DB , mock sqlmock.Sqlmock ) {
1340
-
1341
1339
type Score struct {
1342
1340
Discipline string `db:"discipline"`
1343
1341
score uint `db:"score"`
@@ -1350,6 +1348,7 @@ func TestAnonymousStructPrError(t *testing.T) {
1350
1348
* ClassType
1351
1349
Score
1352
1350
}
1351
+
1353
1352
var value []* struct {
1354
1353
Age int64 `db:"age"`
1355
1354
Class
@@ -1375,8 +1374,8 @@ func TestAnonymousStructPrError(t *testing.T) {
1375
1374
assert .Equal (t , value [0 ].score , 0 )
1376
1375
}
1377
1376
})
1378
- dbtest .RunTest (t , func (db * sql.DB , mock sqlmock.Sqlmock ) {
1379
1377
1378
+ dbtest .RunTest (t , func (db * sql.DB , mock sqlmock.Sqlmock ) {
1380
1379
type Score struct {
1381
1380
Discipline string
1382
1381
score uint
@@ -1389,6 +1388,7 @@ func TestAnonymousStructPrError(t *testing.T) {
1389
1388
* ClassType
1390
1389
Score
1391
1390
}
1391
+
1392
1392
var value []* struct {
1393
1393
Age int64
1394
1394
Class
@@ -1414,7 +1414,6 @@ func TestAnonymousStructPrError(t *testing.T) {
1414
1414
assert .Equal (t , value [0 ].score , 0 )
1415
1415
}
1416
1416
})
1417
-
1418
1417
}
1419
1418
1420
1419
type mockedScanner struct {
You can’t perform that action at this time.
0 commit comments