MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / DetectRaceInAlphas

Function DetectRaceInAlphas

testutil/exec.go:140–148  ·  view source on GitHub ↗
(prefix string)

Source from the content-addressed store, hash-verified

138}
139
140func DetectRaceInAlphas(prefix string) bool {
141 for i := 0; i <= 6; i++ {
142 in := GetContainerInstance(prefix, "alpha"+strconv.Itoa(i))
143 if DetectIfRaceViolation(in) {
144 return true
145 }
146 }
147 return false
148}
149
150func DetectIfRaceViolation(instance ContainerInstance) bool {
151 c := instance.GetContainer()

Callers 2

detectRaceFunction · 0.92
StopAlphasAndDetectRaceFunction · 0.85

Calls 2

GetContainerInstanceFunction · 0.85
DetectIfRaceViolationFunction · 0.85

Tested by

no test coverage detected