MCPcopy Index your code
hub / github.com/jetify-com/devbox / includes

Method includes

testscripts/testrunner/testrunner.go:112–114  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

110// belongs to this shard. Round-robin assignment keeps heavy scripts spread
111// across shards rather than clustered on one runner.
112func (s shard) includes(i int) bool {
113 return i%s.total == s.index
114}
115
116// copyFileCmd enables copying files within the WORKDIR
117func copyFileCmd(script *testscript.TestScript, neg bool, args []string) {

Callers 2

RunDevboxTestscriptsFunction · 0.80
RunTestscriptsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected