(s *format.Stanza, wantArgs int)
| 588 | } |
| 589 | |
| 590 | func expectStanzaWithBody(s *format.Stanza, wantArgs int) error { |
| 591 | if len(s.Args) != wantArgs { |
| 592 | return fmt.Errorf("%s stanza has %d arguments, want %d", s.Type, len(s.Args), wantArgs) |
| 593 | } |
| 594 | if len(s.Body) == 0 { |
| 595 | return fmt.Errorf("%s stanza has 0 bytes of body, want >0", s.Type) |
| 596 | } |
| 597 | return nil |
| 598 | } |
| 599 | |
| 600 | func (p *Plugin) recipientError(idx int, err error) int { |
| 601 | if err := p.writeError([]string{"recipient", fmt.Sprint(idx)}, err); err != nil { |
no outgoing calls
no test coverage detected
searching dependent graphs…