MCPcopy
hub / github.com/gopherjs/gopherjs / runTestDir

Function runTestDir

tool.go:952–959  ·  view source on GitHub ↗

runTestDir returns the directory for Node.js to use when running tests for package p. Empty string means current directory.

(p *gbuild.PackageData)

Source from the content-addressed store, hash-verified

950// runTestDir returns the directory for Node.js to use when running tests for package p.
951// Empty string means current directory.
952func runTestDir(p *gbuild.PackageData) string {
953 if p.IsVirtual {
954 // The package is virtual and doesn't have a physical directory. Use current directory.
955 return ""
956 }
957 // Run tests in the package directory.
958 return p.Dir
959}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…