github
155 of 333 new or added lines in 18 files covered. (46.55%)
91 existing lines in 10 files now uncovered.2125 of 3780 relevant lines covered (56.22%)
2.5 hits per line
1 |
package runtime
|
|
2 |
|
|
NEW
|
func pyxisHostLookup(pyxisEnv, hostOverride string) string { |
× |
NEW
|
envs := map[string]string{ |
× |
NEW
|
"prod": "catalog.redhat.com/api/containers", |
× |
NEW
|
"uat": "catalog.uat.redhat.com/api/containers", |
× |
NEW
|
"qa": "catalog.qa.redhat.com/api/containers", |
× |
NEW
|
"stage": "catalog.stage.redhat.com/api/containers", |
× |
NEW
|
} |
× |
NEW
|
if hostOverride != "" { |
× |
NEW
|
return hostOverride
|
× |
NEW
|
} |
× |
13 |
|
|
NEW
|
pyxisHost, ok := envs[pyxisEnv] |
× |
NEW
|
if !ok {
|
× |
NEW
|
pyxisHost = envs["prod"]
|
× |
NEW
|
} |
× |
NEW
|
return pyxisHost
|
× |
19 |
} |