checker-dnsviz/checker
Pierre-Olivier Mercier 77dfb82313 fix: return ErrNoCollector instead of panicking on nil CollectFn
Hosts that register the provider only for its definition (externalizable
checker) construct it with a nil CollectFn. If the local ObservationContext
ends up calling Collect, the previous code dereferenced a nil function
value and crashed the goroutine. Surface a typed error so rules degrade
to a clean StatusError state.
2026-04-30 09:23:26 +07:00
..
collect.go Initial commit 2026-04-26 21:54:28 +07:00
collect_test.go Initial commit 2026-04-26 21:54:28 +07:00
definition.go Initial commit 2026-04-26 21:54:28 +07:00
interactive.go Initial commit 2026-04-26 21:54:28 +07:00
provider.go fix: return ErrNoCollector instead of panicking on nil CollectFn 2026-04-30 09:23:26 +07:00
provider_test.go Initial commit 2026-04-26 21:54:28 +07:00
report.go Initial commit 2026-04-26 21:54:28 +07:00
report_test.go Initial commit 2026-04-26 21:54:28 +07:00
rule.go Initial commit 2026-04-26 21:54:28 +07:00
rule_test.go Initial commit 2026-04-26 21:54:28 +07:00
rules_common.go Initial commit 2026-04-26 21:54:28 +07:00
rules_common_test.go Initial commit 2026-04-26 21:54:28 +07:00
rules_status.go Initial commit 2026-04-26 21:54:28 +07:00
rules_status_test.go Initial commit 2026-04-26 21:54:28 +07:00
testhelpers_test.go Initial commit 2026-04-26 21:54:28 +07:00
types.go Initial commit 2026-04-26 21:54:28 +07:00