14287: Comment and rename checker.go.
authorTom Clegg <tclegg@veritasgenetics.com>
Mon, 24 Jun 2019 13:21:08 +0000 (09:21 -0400)
committerTom Clegg <tclegg@veritasgenetics.com>
Mon, 24 Jun 2019 13:21:08 +0000 (09:21 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

lib/controller/router/checker_test.go [moved from lib/controller/router/checker.go with 73% similarity]

similarity index 73%
rename from lib/controller/router/checker.go
rename to lib/controller/router/checker_test.go
index b9fec9168ee3615f49df3aeb268f426107c15140..93d51fa9d8f93e6e05a930973874e6b085ff5ddc 100644 (file)
@@ -11,6 +11,11 @@ import (
        check "gopkg.in/check.v1"
 )
 
+// a Gocheck checker for testing the name of a function. Used with
+// (*arvadostest.APIStub).Calls() to check that an HTTP request has
+// been routed to the correct arvados.API method.
+//
+//     c.Check(bytes.NewBuffer().Read, isMethodNamed, "Read")
 var isMethodNamed check.Checker = &chkIsMethodNamed{
        CheckerInfo: &check.CheckerInfo{
                Name:   "isMethodNamed",