MCPcopy Create free account
hub / github.com/tailscale/tailscale / ControlURL

Method ControlURL

tstest/integration/integration.go:517–523  ·  view source on GitHub ↗

ControlURL returns e.ControlServer.URL, panicking if it's the empty string, which it should never be in tests.

()

Source from the content-addressed store, hash-verified

515// ControlURL returns e.ControlServer.URL, panicking if it's the empty string,
516// which it should never be in tests.
517func (e *TestEnv) ControlURL() string {
518 s := e.ControlServer.URL
519 if s == "" {
520 panic("control server not set")
521 }
522 return s
523}
524
525// TestEnvOpt represents an option that can be passed to NewTestEnv.
526type TestEnvOpt interface {

Callers 8

TestOneNodeUpAuthFunction · 0.95
NewTestEnvFunction · 0.95
TestStateSavedOnStartFunction · 0.45
completeDeviceApprovalFunction · 0.45
TestNodeWithBadStateFileFunction · 0.45
MustUpMethod · 0.45

Calls

no outgoing calls

Tested by 6

TestOneNodeUpAuthFunction · 0.76
TestStateSavedOnStartFunction · 0.36
completeDeviceApprovalFunction · 0.36
TestNodeWithBadStateFileFunction · 0.36