Performance testing Load function

This commit is contained in:
Matthew Holt
2019-03-26 19:42:52 -06:00
parent 86e2d1b0a4
commit a8dc73b4d9
7 changed files with 132 additions and 12 deletions

View File

@ -28,22 +28,22 @@ func TestParseListenerAddr(t *testing.T) {
expectAddrs: []string{":1234"},
},
{
input: "tcp::::1234",
input: "tcp/:1234",
expectProto: "tcp",
expectAddrs: []string{":1234"},
},
{
input: "tcp6::::1234",
input: "tcp6/:1234",
expectProto: "tcp6",
expectAddrs: []string{":1234"},
},
{
input: "tcp4:::localhost:1234",
input: "tcp4/localhost:1234",
expectProto: "tcp4",
expectAddrs: []string{"localhost:1234"},
},
{
input: "unix:::localhost:1234-1236",
input: "unix/localhost:1234-1236",
expectProto: "unix",
expectAddrs: []string{"localhost:1234", "localhost:1235", "localhost:1236"},
},