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

Commit

Permalink
Generate mock for telegram client
Browse files Browse the repository at this point in the history
  • Loading branch information
richardgreg committed Mar 4, 2024
1 parent 141999b commit ceadb92
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/client/pagerduty.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type pagerdutyClient struct {
}

// NewPagerDutyClient ... Initializer for PagerDuty client
// Todo: implement error handling for client
func NewPagerDutyClient(cfg *PagerDutyConfig, name string) PagerDutyClient {
if cfg.IntegrationKey == "" {
logging.NoContext().Warn("No PagerDuty integration key provided")
Expand Down
1 change: 1 addition & 0 deletions internal/client/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type slackClient struct {
}

// NewSlackClient ... Initializer
// Todo: implement error handling for client
func NewSlackClient(cfg *SlackConfig, name string) SlackClient {
if cfg.URL == "" {
logging.NoContext().Warn("No Slack webhook URL provided")
Expand Down
65 changes: 65 additions & 0 deletions internal/mocks/telegram_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ceadb92

Please sign in to comment.