(t *testing.T)
| 1396 | } |
| 1397 | |
| 1398 | func TestUint64SliceFlagApply_UsesEnvValues_withDefault(t *testing.T) { |
| 1399 | t.Setenv("MY_GOAT", "1 , 2") |
| 1400 | val := []uint64{3, 4} |
| 1401 | fl := Uint64SliceFlag{Name: "goat", Sources: EnvVars("MY_GOAT"), Value: val} |
| 1402 | cmd := &Command{ |
| 1403 | Flags: []Flag{ |
| 1404 | &fl, |
| 1405 | }, |
| 1406 | } |
| 1407 | assert.NoError(t, cmd.Run(buildTestContext(t), []string{""})) |
| 1408 | assert.Equal(t, []uint64{1, 2}, cmd.Value("goat")) |
| 1409 | } |
| 1410 | |
| 1411 | func TestUint64SliceFlagApply_DefaultValueWithDestination(t *testing.T) { |
| 1412 | defValue := []uint64{1, 2} |
nothing calls this directly
no test coverage detected