(ctx context.Context, rep repo.Repository)
| 24 | } |
| 25 | |
| 26 | func (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 | } |
nothing calls this directly
no test coverage detected