(suiteName, testName string)
| 71 | } |
| 72 | |
| 73 | func (s *SQLTestSuite) BeforeTest(suiteName, testName string) { |
| 74 | err := s.SetUp() |
| 75 | s.NoError(err) |
| 76 | |
| 77 | sess := s.Session() |
| 78 | |
| 79 | // Creating test data |
| 80 | artist := sess.Collection("artist") |
| 81 | |
| 82 | artistNames := []string{"Ozzie", "Flea", "Slash", "Chrono"} |
| 83 | for _, artistName := range artistNames { |
| 84 | _, err := artist.Insert(map[string]string{ |
| 85 | "name": artistName, |
| 86 | }) |
| 87 | s.NoError(err) |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | func (s *SQLTestSuite) TestPreparedStatementsCache() { |
| 92 | sess := s.Session() |
nothing calls this directly
no test coverage detected