Searched refs:shardCount (Results 1 – 2 of 2) sorted by relevance
/build/soong/cmd/multiproduct_kati/ |
D | main_test.go | 26 shardCount int 31 shardCount: 1, 36 shardCount: 2, 41 shardCount: 2, 46 shardCount: 10, 62 shardCount: 10, 79 t.Run(fmt.Sprintf("%d/%d", tc.inputCount, tc.shardCount), func(t *testing.T) { 85 got := splitList(input, tc.shardCount) 89 tc.inputCount, tc.shardCount, tc.want, got)
|
D | main.go | 53 var shardCount = flag.Int("shard-count", 1, "split the products into multiple shards (to spread the… var 306 } else if *shardCount < 1 { 307 log.Fatalf("--shard-count value must be >= 1, not %d\n", *shardCount) 308 } else if *shard > *shardCount { 310 *shardCount) 311 } else if *shardCount > 1 { 312 finalProductsList = splitList(finalProductsList, *shardCount)[*shard-1] 514 func splitList(list []string, shardCount int) (ret [][]string) { 515 each := len(list) / shardCount 516 extra := len(list) % shardCount [all …]
|