From 900341fef93f801eae8ac60d9e1c94477b2f6ea1 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Mon, 24 Jun 2019 09:21:08 -0400 Subject: [PATCH] 14287: Comment and rename checker.go. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- lib/controller/router/{checker.go => checker_test.go} | 5 +++++ 1 file changed, 5 insertions(+) rename lib/controller/router/{checker.go => checker_test.go} (73%) 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", -- 2.30.2