| 45 | }; |
| 46 | |
| 47 | TEST_F(LogEntryTest, get_empty_log_entry_when_no_input) { |
| 48 | buffer.begin(); |
| 49 | auto& entry = buffer.end(); |
| 50 | ASSERT_EQ(0, entry.size); |
| 51 | ASSERT_EQ(0, page_allocator.allocated_page_num()); |
| 52 | |
| 53 | ::std::vector<struct ::iovec> iov; |
| 54 | entry.append_to_iovec(page_allocator.page_size(), iov); |
| 55 | ASSERT_EQ(0, iov.size()); |
| 56 | } |
| 57 | |
| 58 | TEST_F(LogEntryTest, read_and_write_correct) { |
| 59 | ::std::vector<struct ::iovec> iov; |
nothing calls this directly
no test coverage detected