From adb02771c6d3f63d2664859ad553f74b0ded7c5c Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Wed, 21 Nov 2018 04:38:35 +0800 Subject: [PATCH] Made gofmt happy. --- bridge/slack/helpers_test.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bridge/slack/helpers_test.go b/bridge/slack/helpers_test.go index b4b4c7be..1226507a 100644 --- a/bridge/slack/helpers_test.go +++ b/bridge/slack/helpers_test.go @@ -7,22 +7,22 @@ import ( ) func TestExtractTopicOrPurpose(t *testing.T) { - testcases := []struct{ - input string + testcases := []struct { + input string wantChangeType string - wantOutput string + wantOutput string }{ - {"@someone set channel topic: one liner", "topic", "one liner"}, - {"@someone set channel purpose: one liner", "purpose", "one liner"}, - {"@someone set channel topic: multi\nliner", "topic", "multi\nliner"}, - {"@someone cleared channel topic", "topic", ""}, - {"some unmatched message", "unknown", ""}, + {"@someone set channel topic: one liner", "topic", "one liner"}, + {"@someone set channel purpose: one liner", "purpose", "one liner"}, + {"@someone set channel topic: multi\nliner", "topic", "multi\nliner"}, + {"@someone cleared channel topic", "topic", ""}, + {"some unmatched message", "unknown", ""}, } for _, tc := range testcases { gotChangeType, gotOutput := extractTopicOrPurpose(tc.input) - assert.Equal(t, tc.wantChangeType , gotChangeType) - assert.Equal(t, tc.wantOutput , gotOutput) + assert.Equal(t, tc.wantChangeType, gotChangeType) + assert.Equal(t, tc.wantOutput, gotOutput) } }