| 65 | } |
| 66 | |
| 67 | type FakeAuthenticator struct { |
| 68 | AllowedToken string |
| 69 | AllowedCert string |
| 70 | Name string |
| 71 | |
| 72 | Successes *atomic.Int32 |
| 73 | Failures *atomic.Int32 |
| 74 | |
| 75 | mu sync.Mutex |
| 76 | } |
| 77 | |
| 78 | func NewFakeAuthenticator(name string) *FakeAuthenticator { |
| 79 | return &FakeAuthenticator{ |
nothing calls this directly
no outgoing calls
no test coverage detected