ControlURL returns e.ControlServer.URL, panicking if it's the empty string, which it should never be in tests.
()
| 515 | // ControlURL returns e.ControlServer.URL, panicking if it's the empty string, |
| 516 | // which it should never be in tests. |
| 517 | func (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. |
| 526 | type TestEnvOpt interface { |
no outgoing calls