MCPcopy Create free account
hub / github.com/bytebase/bytebase / countWebhooksFor

Function countWebhooksFor

backend/tests/webhook_helpers_test.go:100–108  ·  view source on GitHub ↗
(c *webhookCollector, projectName, eventTitle string)

Source from the content-addressed store, hash-verified

98}
99
100func 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).

Callers 2

waitForWebhookCountFunction · 0.85
requireWebhookCountFunction · 0.85

Calls 2

matchesEventFunction · 0.85
getRequestsMethod · 0.80

Tested by

no test coverage detected