| 51 | static constexpr Tag tag = static_cast<Tag>(123); |
| 52 | |
| 53 | static TestFrame Encode(const bufferlist& header, |
| 54 | const bufferlist& front, |
| 55 | const bufferlist& middle, |
| 56 | const bufferlist& data) { |
| 57 | TestFrame f; |
| 58 | f.segments[SegmentIndex::Msg::HEADER] = header; |
| 59 | f.segments[SegmentIndex::Msg::FRONT] = front; |
| 60 | f.segments[SegmentIndex::Msg::MIDDLE] = middle; |
| 61 | f.segments[SegmentIndex::Msg::DATA] = data; |
| 62 | |
| 63 | // discard cached crcs for perf tests |
| 64 | f.segments[SegmentIndex::Msg::HEADER].invalidate_crc(); |
| 65 | f.segments[SegmentIndex::Msg::FRONT].invalidate_crc(); |
| 66 | f.segments[SegmentIndex::Msg::MIDDLE].invalidate_crc(); |
| 67 | f.segments[SegmentIndex::Msg::DATA].invalidate_crc(); |
| 68 | return f; |
| 69 | } |
| 70 | |
| 71 | static TestFrame Decode(segment_bls_t& segment_bls) { |
| 72 | TestFrame f; |
nothing calls this directly
no test coverage detected