| 96 | |
| 97 | #if DEBUG |
| 98 | void Writer::assertLengthCorrect() const { |
| 99 | if (!_outputFile) { |
| 100 | size_t len = 0; |
| 101 | forEachChunk([&](slice chunk) { |
| 102 | len += chunk.size; |
| 103 | }); |
| 104 | assert_postcondition(len == length()); |
| 105 | } |
| 106 | } |
| 107 | #endif |
| 108 | |
| 109 |
nothing calls this directly
no outgoing calls
no test coverage detected