(t *testing.T)
| 543 | } |
| 544 | |
| 545 | func TestSelectSliceMapTime(t *testing.T) { |
| 546 | RunWithSchema(defaultSchema, t, func(db *DB, t *testing.T, now string) { |
| 547 | loadDefaultFixture(db, t) |
| 548 | rows, err := db.Queryx("SELECT * FROM person") |
| 549 | if err != nil { |
| 550 | t.Fatal(err) |
| 551 | } |
| 552 | for rows.Next() { |
| 553 | _, err := rows.SliceScan() |
| 554 | if err != nil { |
| 555 | t.Error(err) |
| 556 | } |
| 557 | } |
| 558 | |
| 559 | rows, err = db.Queryx("SELECT * FROM person") |
| 560 | if err != nil { |
| 561 | t.Fatal(err) |
| 562 | } |
| 563 | for rows.Next() { |
| 564 | m := map[string]interface{}{} |
| 565 | err := rows.MapScan(m) |
| 566 | if err != nil { |
| 567 | t.Error(err) |
| 568 | } |
| 569 | } |
| 570 | |
| 571 | }) |
| 572 | } |
| 573 | |
| 574 | func TestNilReceiver(t *testing.T) { |
| 575 | RunWithSchema(defaultSchema, t, func(db *DB, t *testing.T, now string) { |
nothing calls this directly
no test coverage detected