MCPcopy Index your code
hub / github.com/getlantern/sysproxy / TestGetOutput

Function TestGetOutput

sysproxy_test.go:21–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

19}
20
21func TestGetOutput(t *testing.T) {
22 path := path.Join(os.TempDir(), "sysproxy")
23 err := EnsureHelperToolPresent(path, "For test purpose", "")
24 assert.NoError(t, err, "should install helper tool")
25 off, err := On("localhost:8888")
26 assert.NoError(t, err, "should set system proxy on")
27 err = off()
28 assert.NoError(t, err, "should set system proxy off")
29}

Callers

nothing calls this directly

Calls 2

EnsureHelperToolPresentFunction · 0.85
OnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…