(ctx context.Context)
| 330 | } |
| 331 | |
| 332 | func (s *state) CheckConnection(ctx context.Context) module.CheckResult { |
| 333 | if s.c.stage != StageConnection { |
| 334 | return module.CheckResult{} |
| 335 | } |
| 336 | |
| 337 | defer trace.StartRegion(ctx, "command/CheckConnection-"+s.c.cmd).End() |
| 338 | |
| 339 | cmdName, cmdArgs := s.expandCommand("") |
| 340 | return s.run(cmdName, cmdArgs, bytes.NewReader(nil)) |
| 341 | } |
| 342 | |
| 343 | func (s *state) CheckSender(ctx context.Context, addr string) module.CheckResult { |
| 344 | s.mailFrom = addr |
nothing calls this directly
no test coverage detected