Skip to content
This repository was archived by the owner on May 29, 2024. It is now read-only.

Commit ceadb92

Browse files
committed
Generate mock for telegram client
1 parent 141999b commit ceadb92

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

internal/client/pagerduty.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ type pagerdutyClient struct {
4848
}
4949

5050
// NewPagerDutyClient ... Initializer for PagerDuty client
51+
// Todo: implement error handling for client
5152
func NewPagerDutyClient(cfg *PagerDutyConfig, name string) PagerDutyClient {
5253
if cfg.IntegrationKey == "" {
5354
logging.NoContext().Warn("No PagerDuty integration key provided")

internal/client/slack.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type slackClient struct {
4141
}
4242

4343
// NewSlackClient ... Initializer
44+
// Todo: implement error handling for client
4445
func NewSlackClient(cfg *SlackConfig, name string) SlackClient {
4546
if cfg.URL == "" {
4647
logging.NoContext().Warn("No Slack webhook URL provided")

internal/mocks/telegram_client.go

Lines changed: 65 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)