includes reports whether the item at position i (in a deterministic ordering) belongs to this shard. Round-robin assignment keeps heavy scripts spread across shards rather than clustered on one runner.
(i int)
| 110 | // belongs to this shard. Round-robin assignment keeps heavy scripts spread |
| 111 | // across shards rather than clustered on one runner. |
| 112 | func (s shard) includes(i int) bool { |
| 113 | return i%s.total == s.index |
| 114 | } |
| 115 | |
| 116 | // copyFileCmd enables copying files within the WORKDIR |
| 117 | func copyFileCmd(script *testscript.TestScript, neg bool, args []string) { |
no outgoing calls
no test coverage detected