MCPcopy Create free account
hub / github.com/getlantern/sysproxy / TestAllEquals

Function TestAllEquals

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

Source from the content-addressed store, hash-verified

9)
10
11func TestAllEquals(t *testing.T) {
12 assert.True(t, allEquals("127.0.0.1:8888", "127.0.0.1:8888\n127.0.0.1:8888"))
13 assert.True(t, allEquals("127.0.0.1:8888", "127.0.0.1:8888\n127.0.0.1:8888\n"))
14 assert.False(t, allEquals("127.0.0.1:8888", "127.0.0.1:8888\n127.0.0.1:8887"))
15 assert.True(t, allEquals("", "\n\n"))
16 assert.True(t, allEquals("", "\r\n"))
17 assert.False(t, allEquals("", "127.0.0.1:8888"))
18 assert.False(t, allEquals("127.0.0.1:8888", ""))
19}
20
21func TestGetOutput(t *testing.T) {
22 path := path.Join(os.TempDir(), "sysproxy")

Callers

nothing calls this directly

Calls 1

allEqualsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…