MCPcopy
hub / github.com/ddworken/hishtory / markTestForSharding

Function markTestForSharding

client/testutils.go:422–428  ·  view source on GitHub ↗

Mark the given test for sharding with the given test ID number.

(t *testing.T, testShardNumber int)

Source from the content-addressed store, hash-verified

420
421// Mark the given test for sharding with the given test ID number.
422func markTestForSharding(t *testing.T, testShardNumber int) {
423 if isShardedTestRun() {
424 if testShardNumber%numTestShards() != currentShardNumber() {
425 t.Skip("Skipping sharded test")
426 }
427 }
428}

Callers 15

TestStripBashTimePrefixFunction · 0.85
TestFishFunction · 0.85
TestTimestampFormatFunction · 0.85
TestZDotDirFunction · 0.85
TestRemoveDuplicateRowsFunction · 0.85
TestCtxConfigIsReferenceFunction · 0.85
TestImportHistoryFunction · 0.85

Calls 3

isShardedTestRunFunction · 0.85
numTestShardsFunction · 0.85
currentShardNumberFunction · 0.85

Tested by 15

TestStripBashTimePrefixFunction · 0.68
TestFishFunction · 0.68
TestTimestampFormatFunction · 0.68
TestZDotDirFunction · 0.68
TestRemoveDuplicateRowsFunction · 0.68
TestCtxConfigIsReferenceFunction · 0.68
TestImportHistoryFunction · 0.68