(t *testing.T, ctx context.Context)
| 78 | } |
| 79 | |
| 80 | func InitMachineTest(t *testing.T, ctx context.Context) (*gin.Engine, models.WatcherAuthResponse, csconfig.Config) { |
| 81 | router, config := NewAPITest(t, ctx) |
| 82 | loginResp := LoginToTestAPI(t, ctx, router, config) |
| 83 | |
| 84 | return router, loginResp, config |
| 85 | } |
| 86 | |
| 87 | func LoginToTestAPI(t *testing.T, ctx context.Context, router *gin.Engine, config csconfig.Config) models.WatcherAuthResponse { |
| 88 | body := CreateTestMachine(t, ctx, router, "") |
no test coverage detected
searching dependent graphs…