MustGenerateUUID generates the uuid. If error occurs, it fails the test.
(t *testing.T)
| 292 | |
| 293 | // MustGenerateUUID generates the uuid. If error occurs, it fails the test. |
| 294 | func MustGenerateUUID(t *testing.T) string { |
| 295 | ret, err := utils.GenerateUUID() |
| 296 | if err != nil { |
| 297 | t.Fatal(errors.Wrap(err, "generating uuid").Error()) |
| 298 | } |
| 299 | |
| 300 | return ret |
| 301 | } |
| 302 | |
| 303 | func MustOpenDatabase(t *testing.T, dbPath string) *database.DB { |
| 304 | db, err := database.Open(dbPath) |