NewMockConfig returns a mock config populated with gh's default config file. See NewMockConfigFromString for when to prefer a mock over NewIsolatedTestConfig.
()
| 16 | // NewMockConfig returns a mock config populated with gh's default config file. |
| 17 | // See NewMockConfigFromString for when to prefer a mock over NewIsolatedTestConfig. |
| 18 | func NewMockConfig() *ghmock.ConfigMock { |
| 19 | return NewMockConfigFromString(defaultConfigStr) |
| 20 | } |
| 21 | |
| 22 | // NewMockConfigFromString returns a mock config populated from cfgString, for tests |
| 23 | // that need to stub config behaviour by assigning to the mock's function fields. |