(uid string, githubID *string)
| 24 | ) |
| 25 | |
| 26 | func 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. |
| 41 | func TestGCIPAuthenticator(t *testing.T) { |
no outgoing calls
no test coverage detected