MCPcopy
hub / github.com/dgraph-io/dgraph / isUnitOnly

Function isUnitOnly

t/t.go:1151–1153  ·  view source on GitHub ↗

isUnitOnly returns true when the suite is exactly "unit" with nothing else. In unit-only mode, the runner skips Docker clusters and --tags=integration, running only tests that don't require the integration build tag.

()

Source from the content-addressed store, hash-verified

1149// In unit-only mode, the runner skips Docker clusters and --tags=integration,
1150// running only tests that don't require the integration build tag.
1151func isUnitOnly() bool {
1152 return len(testsuite) == 1 && testsuite[0] == "unit"
1153}
1154
1155func isValidPackageForSuite(pkg string) bool {
1156 valid := false

Callers 3

runTestsForFunction · 0.85
runTestsFunction · 0.85
getPackagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected