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

Function getClusterPrefix

t/t.go:817–823  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

815}
816
817func getClusterPrefix() string {
818 if len(*useExisting) > 0 {
819 return *useExisting
820 }
821 id := atomic.AddInt32(&testId, 1)
822 return fmt.Sprintf("%s%03d-%d", getGlobalPrefix(), procId, id)
823}
824
825// for tests that require custom docker-compose file (located in test directory)
826func runCustomClusterTest(ctx context.Context, pkg string, wg *sync.WaitGroup, xmlFile string) error {

Callers 2

runTestsFunction · 0.85
runCustomClusterTestFunction · 0.85

Calls 1

getGlobalPrefixFunction · 0.85

Tested by

no test coverage detected