(t *testing.T, tx *gorm.DB, domain string)
| 63 | } |
| 64 | |
| 65 | func MockInstance(t *testing.T, tx *gorm.DB, domain string) *Instance { |
| 66 | t.Helper() |
| 67 | require := require.New(t) |
| 68 | |
| 69 | instance, err := NewInstances(tx).Create("example.com", "Example", "Example instance", "admin@example.com") |
| 70 | require.NoError(err) |
| 71 | return instance |
| 72 | } |
| 73 | |
| 74 | func setupTestDB(t *testing.T) *gorm.DB { |
| 75 | t.Helper() |
no test coverage detected