(t *testing.T)
| 19 | } |
| 20 | |
| 21 | func 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…