MCPcopy Create free account
hub / github.com/kopia/kopia / SendTestNotification

Function SendTestNotification

notification/notification_send.go:215–219  ·  view source on GitHub ↗

SendTestNotification sends a test notification to the given sender.

(ctx context.Context, rep repo.Repository, s sender.Sender)

Source from the content-addressed store, hash-verified

213
214// SendTestNotification sends a test notification to the given sender.
215func SendTestNotification(ctx context.Context, rep repo.Repository, s sender.Sender) error {
216 log(ctx).Infof("Sending test notification to %v", s.Summary())
217
218 return SendTo(ctx, rep, s, notifytemplate.TestNotification, notifydata.EmptyEventData{}, SeveritySuccess, notifytemplate.DefaultOptions)
219}

Callers 3

runMethod · 0.92

Calls 2

SendToFunction · 0.85
SummaryMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…