MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / test_host_only

Function test_host_only

tests/ssh/test_parse_hostport.py:4–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3
4def test_host_only():
5 assert parse_hostport("host") == (None, None, None, "host")
6 assert parse_hostport("1.2.3.4") == (None, None, None, "1.2.3.4")
7 assert parse_hostport("2001::1") == (None, None, None, "2001::1")
8 assert parse_hostport("[2001::1]") == (None, None, None, "2001::1")
9
10
11def test_host_and_port():

Callers

nothing calls this directly

Calls 1

parse_hostportFunction · 0.90

Tested by

no test coverage detected