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

Method run

cli/command_notification_profile_send.go:26–38  ·  view source on GitHub ↗
(ctx context.Context, rep repo.Repository)

Source from the content-addressed store, hash-verified

24}
25
26func (c *commandNotificationProfileTest) run(ctx context.Context, rep repo.Repository) error {
27 p, err := notifyprofile.GetProfile(ctx, rep, c.profileName)
28 if err != nil {
29 return errors.Wrap(err, "unable to get notification profile")
30 }
31
32 snd, err := sender.GetSender(ctx, p.ProfileName, p.MethodConfig.Type, p.MethodConfig.Config)
33 if err != nil {
34 return errors.Wrap(err, "unable to get notification sender")
35 }
36
37 return notification.SendTestNotification(ctx, rep, snd) //nolint:wrapcheck
38}

Callers

nothing calls this directly

Calls 3

GetProfileFunction · 0.92
GetSenderFunction · 0.92
SendTestNotificationFunction · 0.92

Tested by

no test coverage detected