(t *testing.T)
| 23 | ) |
| 24 | |
| 25 | func TestExecResult(t *testing.T) { |
| 26 | Convey("test result", t, func() { |
| 27 | r := &execResult{ |
| 28 | affectedRows: 1, |
| 29 | lastInsertID: 2, |
| 30 | } |
| 31 | |
| 32 | i, err := r.LastInsertId() |
| 33 | So(i, ShouldEqual, 2) |
| 34 | So(err, ShouldBeNil) |
| 35 | i, err = r.RowsAffected() |
| 36 | So(i, ShouldEqual, 1) |
| 37 | So(err, ShouldBeNil) |
| 38 | }) |
| 39 | } |
nothing calls this directly
no test coverage detected