sdk/golang/Standard Library/GoTestingSlogtest
Standard Library

GoTestingSlogtest

Go stdlib package — testing/slogtest. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.TestHandler()Neutral
#
Signature
TestHandler(h slog.Handler, results func() []map[string]any) error

TestHandler tests a [slog.Handler].

Fully-Qualified Names

FQNField
testing/slogtestfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # testing/slogtest