@@ -35,7 +35,7 @@ func TestStreamWindow_GroupByIndex(t *testing.T) {
35
35
{"request" , "/i/b" , "00:AA:22:DD" , "accepted" },
36
36
})
37
37
38
- strm := From (src ).Flow (
38
+ strm := From (src ).Run (
39
39
// Window(with incoming type T), will output []T
40
40
window .All [[]string ](),
41
41
// GroupByIndex receives []T, output map[T][][]T
@@ -79,7 +79,7 @@ func TestStreamWindow_GroupByStructField(t *testing.T) {
79
79
{Event : "response" , Src : "/i/d" , Device : "00:BB:22:DD" , Result : "served" },
80
80
})
81
81
82
- strm := From (src ).Flow (
82
+ strm := From (src ).Run (
83
83
// Window(with incoming type T), will output []T
84
84
window .All [log ](),
85
85
// GroupByStructField receives []T, output map[any][]T
@@ -121,7 +121,7 @@ func TestStreamWindow_GroupByMapKey(t *testing.T) {
121
121
{"Event" : "response" , "Src" : "/i/d" , "Device" : "00:BB:22:DD" , "Result" : "served" },
122
122
})
123
123
124
- strm := From (src ).Flow (
124
+ strm := From (src ).Run (
125
125
// Window(with incoming type T), will output []T
126
126
window.Size [map [string ]string ](4 ),
127
127
// GroupByMap receives []T, output map[any][]T
@@ -157,7 +157,7 @@ func TestStreamWindow_SumByIndex(t *testing.T) {
157
157
{79 , 104 , 724 , 4 , 2 },
158
158
})
159
159
160
- strm := From (src ).Flow (
160
+ strm := From (src ).Run (
161
161
// Window(with incoming type T), will output []T
162
162
window .All [[]int ](),
163
163
// SumByIndex receives []T, outputs sum of values float64
@@ -196,7 +196,7 @@ func TestStreamWindow_SumByStructField(t *testing.T) {
196
196
{"Memphis" , "plane" , "propeller" , 48 },
197
197
})
198
198
199
- strm := From (src ).Flow (
199
+ strm := From (src ).Run (
200
200
// Window(with incoming type T), will output []T
201
201
window .All [vehicle ](),
202
202
// SumByStructField receives []T, outputs sum of values float64
@@ -232,7 +232,7 @@ func TestStreamWindow_SumByMapKey(t *testing.T) {
232
232
{"vehicle" : 5 },
233
233
})
234
234
235
- strm := From (src ).Flow (
235
+ strm := From (src ).Run (
236
236
// Window(with incoming type T), will output []T
237
237
window .All [map [string ]int ](),
238
238
// SumByStructField receives []T, outputs sum of values float64
@@ -262,7 +262,7 @@ func TestStreamWindow_SumByMapKey(t *testing.T) {
262
262
func TestStreamWindow_SumAll1D (t * testing.T ) {
263
263
src := sources .Slice ([]float32 {10.0 , 70.0 , 20.0 , 40.0 , 60 , 90 , 0 , 80 , 30 })
264
264
265
- strm := From (src ).Flow (
265
+ strm := From (src ).Run (
266
266
// Window(with incoming type T), will output []T
267
267
window .All [float32 ](),
268
268
// SumByStructField receives []T, outputs sum of values float64
@@ -296,7 +296,7 @@ func TestStreamWindow_SumAll2D(t *testing.T) {
296
296
{0 , 80 , 30 },
297
297
})
298
298
299
- strm := From (src ).Flow (
299
+ strm := From (src ).Run (
300
300
// Window(with incoming type T), will output []T
301
301
window .All [[]int ](),
302
302
// SumByStructField receives []T, outputs sum of values float64
@@ -326,7 +326,7 @@ func TestStreamWindow_SumAll2D(t *testing.T) {
326
326
func TestStreamWindow_SortSlice (t * testing.T ) {
327
327
src := sources .Slice ([]string {"Spirit" , "Voyager" , "BigFoot" , "Enola" , "Memphis" })
328
328
329
- strm := From (src ).Flow (
329
+ strm := From (src ).Run (
330
330
// Window(with incoming type T), will output []T
331
331
window .All [string ](),
332
332
// SortSlice receives []T, outputs sum of values float64
@@ -360,7 +360,7 @@ func TestStreamWindow_SortSliceByIndex(t *testing.T) {
360
360
{"Memphis" , "plane" , "propeller" },
361
361
})
362
362
363
- strm := From (src ).Flow (
363
+ strm := From (src ).Run (
364
364
// Window(with incoming type T), will output []T
365
365
window .All [[]string ](),
366
366
// SortSlice receives []T, outputs sum of values float64
@@ -404,7 +404,7 @@ func TestStreamWindow_SortSliceByStructField(t *testing.T) {
404
404
{"Memphis" , "plane" , "propeller" , 48 },
405
405
})
406
406
407
- strm := From (src ).Flow (
407
+ strm := From (src ).Run (
408
408
// Window(with incoming type T), will output []T
409
409
window .All [vehicle ](),
410
410
// SortSlice receives []T, outputs sum of values float64
@@ -443,7 +443,7 @@ func TestStreamWindow_SortByMapKey(t *testing.T) {
443
443
{"Vehicle" : "Memphis" , "Kind" : "plane" , "Engine" : "propeller" },
444
444
})
445
445
446
- strm := From (src ).Flow (
446
+ strm := From (src ).Run (
447
447
// Window(with incoming type T), will output []T
448
448
window .All [map [string ]string ](),
449
449
// SortSlice receives []T, outputs sum of values float64
@@ -482,7 +482,7 @@ func TestStreamWindow_SortWithFunc(t *testing.T) {
482
482
"Memphis" ,
483
483
})
484
484
485
- strm := From (src ).Flow (
485
+ strm := From (src ).Run (
486
486
// Window(with incoming type T), will output []T
487
487
window .All [string ](),
488
488
// SortSlice receives []T, outputs sum of values float64
0 commit comments