(userID int)
| 73 | } |
| 74 | |
| 75 | func originTaskTestContext(userID int) *gin.Context { |
| 76 | recorder := httptest.NewRecorder() |
| 77 | c, _ := gin.CreateTestContext(recorder) |
| 78 | c.Request = httptest.NewRequest(http.MethodPost, "/vendor/jobs", nil) |
| 79 | common.SetContextKey(c, constant.ContextKeyUserId, userID) |
| 80 | return c |
| 81 | } |
| 82 | |
| 83 | func resolvedOriginPin(c *gin.Context) (int, bool) { |
| 84 | pin, found, _ := service.GetChannelConstraints(c).ResolvedPin() |
no outgoing calls
no test coverage detected