(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func TestMapSingleParameter(t *testing.T) { |
| 9 | dataset := New().Slice( |
| 10 | []int{1, 2, 3}, |
| 11 | ).Map(func(t int) (int, int) { |
| 12 | return t, t |
| 13 | }).Map(func(x, y int) int { |
| 14 | return x + y |
| 15 | }) |
| 16 | got := collectOutput(dataset) |
| 17 | |
| 18 | if want := []int{2, 4, 6}; !reflect.DeepEqual(got, want) { |
| 19 | t.Errorf("Got: %v want: %v", got, want) |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | func TestGroupByKeyMap(t *testing.T) { |
| 24 | dataset := New().Slice( |
nothing calls this directly
no test coverage detected