MCPcopy
hub / github.com/caddyserver/caddy / assertPlaceholderAbsent

Function assertPlaceholderAbsent

modules/caddyhttp/caddyauth/caddyauth_test.go:182–187  ·  view source on GitHub ↗
(t *testing.T, repl *caddy.Replacer, key string)

Source from the content-addressed store, hash-verified

180}
181
182func assertPlaceholderAbsent(t *testing.T, repl *caddy.Replacer, key string) {
183 t.Helper()
184 if actual, ok := repl.GetString(key); ok {
185 t.Fatalf("expected placeholder %q to be absent, got %q", key, actual)
186 }
187}
188
189type staticAuthenticator struct {
190 user User

Calls 1

GetStringMethod · 0.80

Tested by

no test coverage detected