MCPcopy Index your code
hub / github.com/upper/db / TestExpectCursorError

Method TestExpectCursorError

internal/testsuite/sql_suite.go:219–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217}
218
219func (s *SQLTestSuite) TestExpectCursorError() {
220 sess := s.Session()
221
222 artist := sess.Collection("artist")
223
224 res := artist.Find(-1)
225 c, err := res.Count()
226 s.Equal(uint64(0), c)
227 s.NoError(err)
228
229 var item map[string]interface{}
230 err = res.One(&item)
231 s.Error(err)
232}
233
234func (s *SQLTestSuite) TestInsertDefault() {
235 if s.Adapter() == "ql" {

Callers

nothing calls this directly

Calls 6

SessionMethod · 0.65
CollectionMethod · 0.65
FindMethod · 0.65
CountMethod · 0.65
OneMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected