()
| 95 | } |
| 96 | |
| 97 | func (api ProviderAPI) getenv() func(string) string { |
| 98 | if api.Env != nil { |
| 99 | return api.Env |
| 100 | } |
| 101 | return os.Getenv |
| 102 | } |
| 103 | |
| 104 | func (api ProviderAPI) cacheTTL() time.Duration { |
| 105 | if api.CacheTTL > 0 { |
no outgoing calls
no test coverage detected