(t *testing.T)
| 1446 | } |
| 1447 | |
| 1448 | func TestUint64SliceFlag_SetFromParentCommand(t *testing.T) { |
| 1449 | fl := &Uint64SliceFlag{Name: "numbers", Aliases: []string{"n"}, Value: []uint64{1, 2, 3, 4}} |
| 1450 | cmd := &Command{ |
| 1451 | parent: &Command{ |
| 1452 | Flags: []Flag{ |
| 1453 | fl, |
| 1454 | }, |
| 1455 | }, |
| 1456 | } |
| 1457 | r := require.New(t) |
| 1458 | r.Equalf( |
| 1459 | []uint64{1, 2, 3, 4}, cmd.Uint64Slice("numbers"), |
| 1460 | "child context unable to view parent flag", |
| 1461 | ) |
| 1462 | } |
| 1463 | |
| 1464 | func TestUint64SliceFlag_ReturnNil(t *testing.T) { |
| 1465 | fl := &Uint64SliceFlag{} |
nothing calls this directly
no test coverage detected