()
| 507 | } |
| 508 | |
| 509 | func (s *SQLTestSuite) TestGetWithOffset() { |
| 510 | sess := s.Session() |
| 511 | |
| 512 | artist := sess.Collection("artist") |
| 513 | |
| 514 | // Fetching one struct. |
| 515 | var artists []artistType |
| 516 | err := artist.Find().Offset(1).All(&artists) |
| 517 | s.NoError(err) |
| 518 | |
| 519 | s.Equal(3, len(artists)) |
| 520 | } |
| 521 | |
| 522 | func (s *SQLTestSuite) TestGetResultsOneByOne() { |
| 523 | sess := s.Session() |
nothing calls this directly
no test coverage detected