MCPcopy Create free account
hub / github.com/baidu/babylon / TEST_F

Function TEST_F

test/logging/test_log_entry.cpp:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45};
46
47TEST_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
58TEST_F(LogEntryTest, read_and_write_correct) {
59 ::std::vector<struct ::iovec> iov;

Callers

nothing calls this directly

Calls 8

allocated_page_numMethod · 0.80
append_to_iovecMethod · 0.80
page_sizeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
clearMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected