(t *testing.T)
| 1159 | } |
| 1160 | |
| 1161 | func TestIntSliceFlag_SetFromParentCommand(t *testing.T) { |
| 1162 | fl := &Int64SliceFlag{Name: "numbers", Aliases: []string{"n"}, Value: []int64{1, 2, 3, 4}} |
| 1163 | |
| 1164 | cmd := &Command{ |
| 1165 | parent: &Command{ |
| 1166 | Flags: []Flag{ |
| 1167 | fl, |
| 1168 | }, |
| 1169 | }, |
| 1170 | } |
| 1171 | |
| 1172 | require.Equalf(t, []int64{1, 2, 3, 4}, cmd.Int64Slice("numbers"), "child context unable to view parent flag") |
| 1173 | } |
| 1174 | |
| 1175 | func TestIntSliceFlagValueFromCommand(t *testing.T) { |
| 1176 | f := &Int64SliceFlag{Name: "myflag"} |
nothing calls this directly
no test coverage detected