MCPcopy Create free account
hub / github.com/google/go-cloud / HasDockerTestEnvironment

Function HasDockerTestEnvironment

internal/testing/setup/setup.go:308–311  ·  view source on GitHub ↗

HasDockerTestEnvironment returns true when either: 1) Not on Github Actions. 2) On Github's Linux environment, where Docker is available.

()

Source from the content-addressed store, hash-verified

306// 1) Not on Github Actions.
307// 2) On Github's Linux environment, where Docker is available.
308func HasDockerTestEnvironment() bool {
309 s := os.Getenv("RUNNER_OS")
310 return s == "" || s == "Linux"
311}

Callers 9

TestFunction · 0.92
newHarnessFunction · 0.92
newTestClientFunction · 0.92
newHarnessFunction · 0.92
TestKafkaKeyFunction · 0.92
mustDialRabbitFunction · 0.92
newHarnessFunction · 0.92
newHarnessFunction · 0.92

Calls

no outgoing calls

Tested by 9

TestFunction · 0.74
newHarnessFunction · 0.74
newTestClientFunction · 0.74
newHarnessFunction · 0.74
TestKafkaKeyFunction · 0.74
mustDialRabbitFunction · 0.74
newHarnessFunction · 0.74
newHarnessFunction · 0.74