MCPcopy
hub / github.com/puma/puma-dev / SetFlagOrFail

Function SetFlagOrFail

dev/devtest/testutils.go:29–33  ·  view source on GitHub ↗

SetFlagOrFail sets the value of a flag or fails the given testing.T

(t *testing.T, flagName string, flagValue string)

Source from the content-addressed store, hash-verified

27
28// SetFlagOrFail sets the value of a flag or fails the given testing.T
29func SetFlagOrFail(t *testing.T, flagName string, flagValue string) {
30 if err := flag.Set(flagName, flagValue); err != nil {
31 assert.Fail(t, err.Error())
32 }
33}
34
35// LogDebugf prints a formatted log message if DEBUG_LOG=1
36func LogDebugf(msg string, vars ...interface{}) {

Callers 1

Calls

no outgoing calls

Tested by 1