gofmt -s -w src misc

R=r, rsc
CC=golang-dev
https://golang.org/cl/2662041
This commit is contained in:
Robert Griesemer 2010-10-22 10:06:33 -07:00
parent f613015e0e
commit 3478891d12
121 changed files with 8388 additions and 8388 deletions

View file

@ -20,35 +20,35 @@ type DialErrorTest struct {
}
var dialErrorTests = []DialErrorTest{
DialErrorTest{
{
"datakit", "", "mh/astro/r70",
"dial datakit mh/astro/r70: unknown network datakit",
},
DialErrorTest{
{
"tcp", "", "127.0.0.1:☺",
"dial tcp 127.0.0.1:☺: unknown port tcp/☺",
},
DialErrorTest{
{
"tcp", "", "no-such-name.google.com.:80",
"dial tcp no-such-name.google.com.:80: lookup no-such-name.google.com.( on .*)?: no (.*)",
},
DialErrorTest{
{
"tcp", "", "no-such-name.no-such-top-level-domain.:80",
"dial tcp no-such-name.no-such-top-level-domain.:80: lookup no-such-name.no-such-top-level-domain.( on .*)?: no (.*)",
},
DialErrorTest{
{
"tcp", "", "no-such-name:80",
`dial tcp no-such-name:80: lookup no-such-name\.(.*\.)?( on .*)?: no (.*)`,
},
DialErrorTest{
{
"tcp", "", "mh/astro/r70:http",
"dial tcp mh/astro/r70:http: lookup mh/astro/r70: invalid domain name",
},
DialErrorTest{
{
"unix", "", "/etc/file-not-found",
"dial unix /etc/file-not-found: no such file or directory",
},
DialErrorTest{
{
"unix", "", "/etc/",
"dial unix /etc/: (permission denied|socket operation on non-socket|connection refused)",
},