(path string, channel string)
| 3634 | } |
| 3635 | |
| 3636 | func (m *Service) validateNetworkChannel(path string, channel string) error { |
| 3637 | if m == nil || m.channelValidator == nil { |
| 3638 | return nil |
| 3639 | } |
| 3640 | |
| 3641 | trimmed := strings.TrimSpace(channel) |
| 3642 | if trimmed == "" { |
| 3643 | return nil |
| 3644 | } |
| 3645 | if err := m.channelValidator(trimmed); err != nil { |
| 3646 | return fmt.Errorf("%w: %s: %w", ErrValidation, path, err) |
| 3647 | } |
| 3648 | return nil |
| 3649 | } |
| 3650 | |
| 3651 | func (m *Service) validateRunChannelUsable( |
| 3652 | ctx context.Context, |
no outgoing calls
no test coverage detected