Home
last modified time | relevance | path

Searched refs:shardCount (Results 1 – 2 of 2) sorted by relevance

/build/soong/cmd/multiproduct_kati/
Dmain_test.go26 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)
Dmain.go56 var shardCount = flag.Int("shard-count", 1, "split the products into multiple shards (to spread the… var
290 } else if *shardCount < 1 {
291 log.Fatalf("--shard-count value must be >= 1, not %d\n", *shardCount)
292 } else if *shard > *shardCount {
294 *shardCount)
295 } else if *shardCount > 1 {
296 finalProductsList = splitList(finalProductsList, *shardCount)[*shard-1]
494 func splitList(list []string, shardCount int) (ret [][]string) {
495 each := len(list) / shardCount
496 extra := len(list) % shardCount
[all …]