MCPcopy
hub / github.com/urfave/cli / TestDocGetValue

Function TestDocGetValue

flag_test.go:3446–3451  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3444}
3445
3446func TestDocGetValue(t *testing.T) {
3447 assert.Equal(t, "true", (&BoolFlag{Name: "foo", Value: true}).GetValue())
3448 assert.Equal(t, "false", (&BoolFlag{Name: "foo", Value: false}).GetValue())
3449 assert.Equal(t, "\"bar\"", (&StringFlag{Name: "foo", Value: "bar"}).GetValue())
3450 assert.Equal(t, "", (&BoolWithInverseFlag{Name: "foo", Value: false}).GetValue())
3451}
3452
3453func TestGenericFlag_SatisfiesFlagInterface(t *testing.T) {
3454 var f Flag = &GenericFlag{}

Callers

nothing calls this directly

Calls 1

GetValueMethod · 0.65

Tested by

no test coverage detected