(t *testing.T)
| 3444 | } |
| 3445 | |
| 3446 | func 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 | |
| 3453 | func TestGenericFlag_SatisfiesFlagInterface(t *testing.T) { |
| 3454 | var f Flag = &GenericFlag{} |