()
| 152 | } |
| 153 | |
| 154 | func (c CompoundPacket) String() string { |
| 155 | out := "CompoundPacket\n" |
| 156 | for _, p := range c { |
| 157 | stringer, canString := p.(fmt.Stringer) |
| 158 | if canString { |
| 159 | out += stringer.String() |
| 160 | } else { |
| 161 | out += stringify(p) |
| 162 | } |
| 163 | } |
| 164 | out = strings.TrimSuffix(strings.ReplaceAll(out, "\n", "\n\t"), "\t") |
| 165 | |
| 166 | return out |
| 167 | } |
nothing calls this directly
no test coverage detected