MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / TestExecResult

Function TestExecResult

client/result_test.go:25–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23)
24
25func 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}

Callers

nothing calls this directly

Calls 2

LastInsertIdMethod · 0.95
RowsAffectedMethod · 0.95

Tested by

no test coverage detected