From 200ad6332b61b643ea943b45938d7d3d17865b2b Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 3 Dec 2019 11:07:44 +0100 Subject: main.go: log errors if they are returned from runner.Trigger() --- submitqueue/test_runner.go | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 submitqueue/test_runner.go (limited to 'submitqueue') diff --git a/submitqueue/test_runner.go b/submitqueue/test_runner.go new file mode 100644 index 000000000000..e5c33cb2e56a --- /dev/null +++ b/submitqueue/test_runner.go @@ -0,0 +1,30 @@ +package submitqueue + +// import ( +// "testing" + +// "github.com/apex/log" +// "github.com/apex/log/handlers/memory" +// "github.com/tweag/gerrit-queue/gerrit" +// ) + +// type MockClient struct { +// gerrit.Client +// } + +// func (c *MockClient) Refresh() error { +// return nil +// } + +// func TestNewRunner(t *testing.T) { +// logger := &log.Logger{ +// Handler: memory.New(), +// } + +// //TODO +// gerrit := &MockClient { +// client: nil, +// } +// submitQueueTag := "submitme" +// runner := NewRunner(logger, gerrit, submitQueueTag) +// } -- cgit 1.4.1