diff options
Diffstat (limited to 'src/cmd/gofix/netdial_test.go')
-rw-r--r-- | src/cmd/gofix/netdial_test.go | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/cmd/gofix/netdial_test.go b/src/cmd/gofix/netdial_test.go deleted file mode 100644 index 272aa526a..000000000 --- a/src/cmd/gofix/netdial_test.go +++ /dev/null @@ -1,51 +0,0 @@ -package main - -func init() { - addTestCases(netdialTests) -} - -var netdialTests = []testCase{ - { - Name: "netdial.0", - In: `package main - -import "net" - -func f() { - c, err := net.Dial(net, "", addr) - c, err = net.Dial(net, "", addr) -} -`, - Out: `package main - -import "net" - -func f() { - c, err := net.Dial(net, addr) - c, err = net.Dial(net, addr) -} -`, - }, - - { - Name: "netlookup.0", - In: `package main - -import "net" - -func f() { - foo, bar, _ := net.LookupHost(host) - foo, bar, _ = net.LookupHost(host) -} -`, - Out: `package main - -import "net" - -func f() { - foo, bar := net.LookupHost(host) - foo, bar = net.LookupHost(host) -} -`, - }, -} |