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

Function composeFileFor

t/t.go:939–945  ·  view source on GitHub ↗

for custom cluster tests (i.e. those not using default docker-compose.yml)

(pkg string)

Source from the content-addressed store, hash-verified

937
938// for custom cluster tests (i.e. those not using default docker-compose.yml)
939func composeFileFor(pkg string) string {
940 dir := strings.Replace(pkg, "github.com/dgraph-io/dgraph/v25/", "", 1)
941 // Return the pristine source path; ComposeFileArgs (called from
942 // startCluster/stopCluster) handles the overlay rewrite + project-
943 // directory anchoring when the file is in the generator manifest.
944 return filepath.Join(*baseDir, dir, "docker-compose.yml")
945}
946
947func getPackages() []task {
948 has := func(list []string, in string) bool {

Callers 2

runCustomClusterTestFunction · 0.85
getPackagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected