]> Cypherpunks repositories - gostls13.git/commitdiff
gofix: fix procattr registration, tests
authorRuss Cox <rsc@golang.org>
Wed, 16 Mar 2011 02:58:09 +0000 (13:58 +1100)
committerAndrew Gerrand <adg@golang.org>
Wed, 16 Mar 2011 02:58:09 +0000 (13:58 +1100)
R=adg
CC=golang-dev
https://golang.org/cl/4275054

src/cmd/gofix/httpserver_test.go
src/cmd/gofix/procattr.go
src/cmd/gofix/procattr_test.go

index eca2a769344025e25bd58bc0863c7569270b2d39..2866ad896d5f264a9713fb5bddb3deb668ccc813 100644 (file)
@@ -11,7 +11,6 @@ func init() {
 var httpserverTests = []testCase{
        {
                Name: "httpserver.0",
-               Fn:   httpserver,
                In: `package main
 
 import "http"
index 3409776954f1e0f814df07bcac7f71133e94f13c..32425b06270c8b94de1b3c1244d1ea073de7736b 100644 (file)
@@ -19,7 +19,7 @@ http://codereview.appspot.com/4253052
 }
 
 func init() {
-       register(httpserverFix)
+       register(procattrFix)
 }
 
 func procattr(f *ast.File) bool {
index 1a8eb86f237e8f8fa7af48203d5ad71a00a195f0..b973b9684df4b125e88c97490a42a95034520f4d 100644 (file)
@@ -11,7 +11,6 @@ func init() {
 var procattrTests = []testCase{
        {
                Name: "procattr.0",
-               Fn:   procattr,
                In: `package main
 
 import (