(c *gin.Context)
| 439 | } |
| 440 | |
| 441 | func TestAllChannels(c *gin.Context) { |
| 442 | err := testAllChannels(true) |
| 443 | if err != nil { |
| 444 | common.ApiError(c, err) |
| 445 | return |
| 446 | } |
| 447 | c.JSON(http.StatusOK, gin.H{ |
| 448 | "success": true, |
| 449 | "message": "", |
| 450 | }) |
| 451 | return |
| 452 | } |
| 453 | |
| 454 | func AutomaticallyTestChannels(frequency int) { |
| 455 | if frequency <= 0 { |
nothing calls this directly
no test coverage detected