From: Tom Clegg Date: Mon, 24 Jun 2019 13:21:08 +0000 (-0400) Subject: 14287: Comment and rename checker.go. X-Git-Tag: 2.0.0~282^2~7 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/900341fef93f801eae8ac60d9e1c94477b2f6ea1 14287: Comment and rename checker.go. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- diff --git a/lib/controller/router/checker.go b/lib/controller/router/checker_test.go similarity index 73% rename from lib/controller/router/checker.go rename to lib/controller/router/checker_test.go index b9fec9168e..93d51fa9d8 100644 --- a/lib/controller/router/checker.go +++ b/lib/controller/router/checker_test.go @@ -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",