MCPcopy Create free account
hub / github.com/GoogleChrome/webstatus.dev / createTestFirebaseToken

Function createTestFirebaseToken

lib/auth/gcip_authenticator_test.go:26–38  ·  view source on GitHub ↗
(uid string, githubID *string)

Source from the content-addressed store, hash-verified

24)
25
26func createTestFirebaseToken(uid string, githubID *string) *firebaseauth.Token {
27 identities := map[string]any{}
28 if githubID != nil {
29 identities["github.com"] = []any{*githubID}
30 }
31 // nolint:exhaustruct
32 return &firebaseauth.Token{
33 UID: uid,
34 Firebase: firebaseauth.FirebaseInfo{
35 Identities: identities,
36 },
37 }
38}
39
40// TestGCIPAuthenticator tests the GCIPAuthenticator functions.
41func TestGCIPAuthenticator(t *testing.T) {

Callers 2

TestGCIPAuthenticatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected