(c *webhookCollector, projectName, eventTitle string)
| 98 | } |
| 99 | |
| 100 | func countWebhooksFor(c *webhookCollector, projectName, eventTitle string) int { |
| 101 | n := 0 |
| 102 | for _, req := range c.getRequests() { |
| 103 | if matchesEvent(req, projectName, eventTitle) { |
| 104 | n++ |
| 105 | } |
| 106 | } |
| 107 | return n |
| 108 | } |
| 109 | |
| 110 | // createTestProject creates a fresh project (default AllowSelfApproval=true; |
| 111 | // approval-flow subtests call disableSelfApproval). |
no test coverage detected