MCPcopy Create free account
hub / github.com/SpectoLabs/hoverfly / TestSettingsDefaultProxyPort

Function TestSettingsDefaultProxyPort

core/settings_test.go:40–46  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

38}
39
40func TestSettingsDefaultProxyPort(t *testing.T) {
41 RegisterTestingT(t)
42
43 os.Setenv("ProxyPort", "")
44 cfg := InitSettings()
45 Expect(cfg.ProxyPort).To(Equal(DefaultPort))
46}
47
48func TestSettingsDefaultListenOnHost(t *testing.T) {
49 RegisterTestingT(t)

Callers

nothing calls this directly

Calls 1

InitSettingsFunction · 0.85

Tested by

no test coverage detected