kubernetes/staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go

func TestCachedTokenAuthenticator(t *testing.T) {}

func TestCachedTokenAuthenticatorWithAudiences(t *testing.T) {}

var bKey

const jwtToken

func BenchmarkKeyFunc(b *testing.B) {}

func TestSharedLookup(t *testing.T) {}

func TestCachedAuditAnnotations(t *testing.T) {}

func BenchmarkCachedTokenAuthenticator(b *testing.B) {}

func newSingleBenchmark(tokens, threads int) *singleBenchmark {}

type singleBenchmark

func (s *singleBenchmark) makeTokens() {}

func (s *singleBenchmark) lookup(ctx context.Context, token string) (*authenticator.Response, bool, error) {}

func (s *singleBenchmark) doAuthForTokenN(n int, a authenticator.Token) {}

func (s *singleBenchmark) run(b *testing.B) {}

func (s *singleBenchmark) bench(b *testing.B) {}

// Add a test version of the audit context with a pre-populated event for easy annotation
// extraction.
func withAudit(ctx context.Context) context.Context {}

func TestUnsafeConversions(t *testing.T) {}

func TestKeyFunc(t *testing.T) {}