stubHelperConfig is a test double for the HelperConfig interface that returns a fixed configured helper and records whether gh was configured as the credential helper.
| 16 | // stubHelperConfig is a test double for the HelperConfig interface that returns a fixed configured helper and records |
| 17 | // whether gh was configured as the credential helper. |
| 18 | type stubHelperConfig struct { |
| 19 | helper gitcredentials.Helper |
| 20 | helperErr error |
| 21 | configuredOur bool |
| 22 | } |
| 23 | |
| 24 | func (s *stubHelperConfig) ConfigureOurs(string) error { |
| 25 | s.configuredOur = true |
nothing calls this directly
no outgoing calls
no test coverage detected