delayedEnvironment is an implementation of the Environment which wraps the legacy behavior of `*config.Configuration.loadGitConfig()`. It is functionally equivalent to call `cfg.loadGitConfig()` before calling methods on the Environment type.
| 10 | // It is functionally equivalent to call `cfg.loadGitConfig()` before calling |
| 11 | // methods on the Environment type. |
| 12 | type delayedEnvironment struct { |
| 13 | env Environment |
| 14 | loading sync.Mutex |
| 15 | callback func() Environment |
| 16 | } |
| 17 | |
| 18 | // Get is shorthand for calling the e.Load(), and then returning |
| 19 | // `e.env.Get(key)`. |
nothing calls this directly
no outgoing calls
no test coverage detected