MCPcopy Index your code
hub / github.com/docker/docker-agent / Has

Method Has

pkg/hooks/executor.go:156–158  ·  view source on GitHub ↗

Has reports whether any hooks are configured for event.

(event EventType)

Source from the content-addressed store, hash-verified

154
155// Has reports whether any hooks are configured for event.
156func (e *Executor) Has(event EventType) bool {
157 return len(e.events[event]) > 0
158}
159
160// Dispatch runs the hooks registered for event and aggregates their
161// verdicts into a single [Result]. Sets input.HookEventName so handlers

Callers 4

TestNewExecutorFunction · 0.95
TestExecutorNilConfigFunction · 0.95
TestExecutorHasIsGenericFunction · 0.95

Calls

no outgoing calls

Tested by 3

TestNewExecutorFunction · 0.76
TestExecutorNilConfigFunction · 0.76
TestExecutorHasIsGenericFunction · 0.76