@@ -30,7 +30,7 @@ import (
3030)
3131
3232func TestParseEndpoint (t * testing.T ) {
33- //Valid unix domain socket endpoint
33+ // Valid unix domain socket endpoint
3434 sockType , addr , err := ParseEndpoint ("unix://fake.sock" )
3535 assert .NoError (t , err )
3636 assert .Equal (t , sockType , "unix" )
@@ -41,25 +41,25 @@ func TestParseEndpoint(t *testing.T) {
4141 assert .Equal (t , sockType , "unix" )
4242 assert .Equal (t , addr , "/fakedir/fakedir/fake.sock" )
4343
44- //Valid unix domain socket with uppercase
44+ // Valid unix domain socket with uppercase
4545 sockType , addr , err = ParseEndpoint ("UNIX://fake.sock" )
4646 assert .NoError (t , err )
4747 assert .Equal (t , sockType , "UNIX" )
4848 assert .Equal (t , addr , "fake.sock" )
4949
50- //Valid TCP endpoint with ip
50+ // Valid TCP endpoint with ip
5151 sockType , addr , err = ParseEndpoint ("tcp://127.0.0.1:80" )
5252 assert .NoError (t , err )
5353 assert .Equal (t , sockType , "tcp" )
5454 assert .Equal (t , addr , "127.0.0.1:80" )
5555
56- //Valid TCP endpoint with uppercase
56+ // Valid TCP endpoint with uppercase
5757 sockType , addr , err = ParseEndpoint ("TCP://127.0.0.1:80" )
5858 assert .NoError (t , err )
5959 assert .Equal (t , sockType , "TCP" )
6060 assert .Equal (t , addr , "127.0.0.1:80" )
6161
62- //Valid TCP endpoint with hostname
62+ // Valid TCP endpoint with hostname
6363 sockType , addr , err = ParseEndpoint ("tcp://fakehost:80" )
6464 assert .NoError (t , err )
6565 assert .Equal (t , sockType , "tcp" )
0 commit comments