MCPcopy Create free account
hub / github.com/MhLiao/TextBoxes_plusplus / ShouldShard

Function ShouldShard

src/gtest/gtest-all.cpp:5606–5646  ·  view source on GitHub ↗

Checks whether sharding is enabled by examining the relevant environment variable values. If the variables are present, but inconsistent (i.e., shard_index >= total_shards), prints an error and exits. If in_subprocess_for_death_test, sharding is disabled because it must only be applied to the original test process. Otherwise, we could filter out death tests we intended to execute.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

OnTestIterationStartMethod · 0.85
RunAllTestsMethod · 0.85

Calls 3

Int32FromEnvOrDieFunction · 0.85
ColoredPrintfFunction · 0.85
MessageFunction · 0.70

Tested by

no test coverage detected