Subtest starts up a real postgres database for each test case. Deprecated: Use 'Mocked' instead for much faster tests.
(testCaseF func(db database.Store, check *expects))
| 177 | // Subtest starts up a real postgres database for each test case. |
| 178 | // Deprecated: Use 'Mocked' instead for much faster tests. |
| 179 | func (s *MethodTestSuite) Subtest(testCaseF func(db database.Store, check *expects)) func() { |
| 180 | t := s.T() |
| 181 | db, _ := dbtestutil.NewDB(t) |
| 182 | return s.SubtestWithDB(db, testCaseF) |
| 183 | } |
| 184 | |
| 185 | // SubtestWithDB is a helper function that returns a function that can be passed to |
| 186 | // s.Run(). This function will run the test case for the method that is being |
no test coverage detected