diff options
author | Russ Cox <rsc@golang.org> | 2009-02-15 14:18:39 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-02-15 14:18:39 -0800 |
commit | e61ee0bb7bec30ab196f51f90e97ae05dadf100b (patch) | |
tree | 3438f481a6b8a30aa83ed69188d0d61313291003 /src/lib/net/ip_test.go | |
parent | dbaaba236fc383e49e95029934d335949f363682 (diff) | |
download | golang-e61ee0bb7bec30ab196f51f90e97ae05dadf100b.tar.gz |
cleanups:
get rid of _ on private names in net.
fix os_test file name list.
newline not needed on Errorf.
R=r
DELTA=305 (34 added, 2 deleted, 269 changed)
OCL=25047
CL=25047
Diffstat (limited to 'src/lib/net/ip_test.go')
-rw-r--r-- | src/lib/net/ip_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/net/ip_test.go b/src/lib/net/ip_test.go index f8d8bd2ba..c67a7dd1b 100644 --- a/src/lib/net/ip_test.go +++ b/src/lib/net/ip_test.go @@ -9,7 +9,7 @@ import ( "testing" ) -func _IPv4(a, b, c, d byte) []byte { +func ipv4(a, b, c, d byte) []byte { return []byte( 0,0,0,0, 0,0,0,0, 0,0,255,255, a,b,c,d ) } @@ -33,14 +33,14 @@ type parseIPTest struct { out []byte; } var parseiptests = []parseIPTest ( - parseIPTest("127.0.1.2", _IPv4(127, 0, 1, 2)), - parseIPTest("127.0.0.1", _IPv4(127, 0, 0, 1)), + parseIPTest("127.0.1.2", ipv4(127, 0, 1, 2)), + parseIPTest("127.0.0.1", ipv4(127, 0, 0, 1)), parseIPTest("127.0.0.256", nil), parseIPTest("abc", nil), - parseIPTest("::ffff:127.0.0.1", _IPv4(127, 0, 0, 1)), + parseIPTest("::ffff:127.0.0.1", ipv4(127, 0, 0, 1)), parseIPTest("2001:4860:0:2001::68", []byte(0x20,0x01, 0x48,0x60, 0,0, 0x20,0x01, 0,0, 0,0, 0,0, 0x00,0x68)), - parseIPTest("::ffff:4a7d:1363", _IPv4(74, 125, 19, 99)), + parseIPTest("::ffff:4a7d:1363", ipv4(74, 125, 19, 99)), ) func TestParseIP(t *testing.T) { |