MCPcopy
hub / github.com/cortexlabs/cortex / MustIntFromEnv

Function MustIntFromEnv

pkg/lib/configreader/int.go:229–235  ·  view source on GitHub ↗

Musts

(envVarName string, v *IntValidation)

Source from the content-addressed store, hash-verified

227//
228
229func MustIntFromEnv(envVarName string, v *IntValidation) int {
230 val, err := IntFromEnv(envVarName, v)
231 if err != nil {
232 exit.Panic(err)
233 }
234 return val
235}
236
237func MustIntFromFile(filePath string, v *IntValidation) int {
238 val, err := IntFromFile(filePath, v)

Callers

nothing calls this directly

Calls 2

PanicFunction · 0.92
IntFromEnvFunction · 0.85

Tested by

no test coverage detected