github.com/lulzWill/go-agent@v2.1.2+incompatible/internal/crossagent/cross_agent_tests/url_clean.json (about) 1 [ 2 {"testname":"only domain", "expected":"domain.com", "input":"domain.com"}, 3 {"testname":"domain path", "expected":"domain.com/a/b/c", "input":"domain.com/a/b/c"}, 4 {"testname":"port", "expected":"domain.com:port/a/b/c", "input":"domain.com:port/a/b/c"}, 5 {"testname":"user", "expected":"domain.com/a/b/c", "input":"user@domain.com/a/b/c"}, 6 {"testname":"user pw", "expected":"domain.com/a/b/c", "input":"user:password@domain.com/a/b/c"}, 7 {"testname":"scheme domain", "expected":"p://domain.com", "input":"p://domain.com"}, 8 {"testname":"scheme path", "expected":"p://domain.com/a/b/c", "input":"p://domain.com/a/b/c"}, 9 {"testname":"scheme port", "expected":"p://domain.com:port/a/b/c", "input":"p://domain.com:port/a/b/c"}, 10 {"testname":"scheme user", "expected":"p://domain.com/a/b/c", "input":"p://user@domain.com/a/b/c"}, 11 {"testname":"scheme user pw", "expected":"p://domain.com/a/b/c", "input":"p://user:password@domain.com/a/b/c"}, 12 {"testname":"fragment", "expected":"p://domain.com/a/b/c", "input":"p://user:password@domain.com/a/b/c#fragment"}, 13 {"testname":"query", "expected":"p://domain.com/a/b/c", "input":"p://user:password@domain.com/a/b/c?query=yes"}, 14 {"testname":"semi-colon", "expected":"p://domain.com/a/b/c", "input":"p://user:password@domain.com/a/b/c;semi=yes"} 15 ]