MCPcopy Create free account
hub / github.com/PostHog/duckgres / TestTokenSetCount

Function TestTokenSetCount

controlplane/admin/dashboard_test.go:172–176  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

170}
171
172func TestTokenSetCount(t *testing.T) {
173 if got := NewTokenSet("new", []string{"old", ""}).Count(); got != 2 {
174 t.Errorf("Count() = %d, want 2 (empty entries filtered)", got)
175 }
176}
177
178// During a secret rotation the server accepts the previous secret(s) as
179// fallbacks while clients are flipped over to the new primary — on both the

Callers

nothing calls this directly

Calls 2

NewTokenSetFunction · 0.85
CountMethod · 0.45

Tested by

no test coverage detected