From 510a1ea80ecf0ff7513a661d6223530171af9078 Mon Sep 17 00:00:00 2001 From: Rizal Widyarta Gowandy Date: Tue, 19 Apr 2022 20:39:14 +0700 Subject: [PATCH] Add Unit Test for NotifySlack --- interceptor/slack_test.go | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 interceptor/slack_test.go diff --git a/interceptor/slack_test.go b/interceptor/slack_test.go new file mode 100644 index 0000000..73c4e66 --- /dev/null +++ b/interceptor/slack_test.go @@ -0,0 +1,29 @@ +package interceptor + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestNotifySlack(t *testing.T) { + type args struct { + serviceName string + mode string + sc SlackClientItf + } + tests := []struct { + name string + args args + }{ + { + name: "Success", + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got := NotifySlack(tt.args.serviceName, tt.args.mode, tt.args.sc) + assert.NotNil(t, got) + }) + } +}