MCPcopy
hub / github.com/basecamp/once / getProxyPorts

Function getProxyPorts

integration/docker_test.go:908–915  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

906}
907
908func getProxyPorts(t *testing.T) docker.ProxySettings {
909 t.Helper()
910 return docker.ProxySettings{
911 HTTPPort: getFreePort(t),
912 HTTPSPort: getFreePort(t),
913 MetricsPort: getFreePort(t),
914 }
915}
916
917func assertContainerRunning(t *testing.T, ctx context.Context, name string, expectRunning bool) {
918 t.Helper()

Callers 15

TestDockerDeploymentFunction · 0.85
TestRestoreStateFunction · 0.85
TestGaplessDeploymentFunction · 0.85
TestLargeLabelDataFunction · 0.85
TestStartStopFunction · 0.85
TestLongAppNameFunction · 0.85
TestContainerLogConfigFunction · 0.85
TestBackupFunction · 0.85
TestRestoreFunction · 0.85

Calls 1

getFreePortFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…