go:generate mockgen -source=demo.go -destination ../mock/demo_mock.go
| 9 | |
| 10 | //go:generate mockgen -source=demo.go -destination ../mock/demo_mock.go |
| 11 | type CloudConfigs interface { |
| 12 | GetAll() (map[string]string, error) |
| 13 | GetByKey(key string) string |
| 14 | } |
| 15 | |
| 16 | func New(t *testing.T) CloudConfigs { |
| 17 | if os.Getenv("ENVIRON") == "localhost" { |
no outgoing calls
no test coverage detected