HasPayload reports whether any detail parts were recorded.
()
| 185 | |
| 186 | // HasPayload reports whether any detail parts were recorded. |
| 187 | func (s *FileBodySource) HasPayload() bool { |
| 188 | if s == nil { |
| 189 | return false |
| 190 | } |
| 191 | s.mu.Lock() |
| 192 | defer s.mu.Unlock() |
| 193 | return len(s.paths) > 0 && !s.cleaned |
| 194 | } |
| 195 | |
| 196 | // Paths returns a copy of the ordered part paths. |
| 197 | func (s *FileBodySource) Paths() []string { |
no outgoing calls
no test coverage detected