MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

src/common/classes/tests/ClumpletTest.cpp:12–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12BOOST_AUTO_TEST_CASE(ClumpletWriteAndReadInfoResponseTest)
13{
14 ClumpletWriter clumplet(ClumpletWriter::Kind::InfoResponse, MAX_DPB_SIZE);
15 clumplet.insertInt(isc_info_sql_stmt_type, isc_info_sql_stmt_select);
16 clumplet.insertInt(isc_info_sql_batch_fetch, 0);
17 clumplet.insertTag(isc_info_end);
18
19 clumplet.rewind();
20 BOOST_TEST(!clumplet.isEof());
21 BOOST_TEST(clumplet.getClumpTag() == isc_info_sql_stmt_type);
22 BOOST_TEST(clumplet.getInt() == isc_info_sql_stmt_select);
23
24 clumplet.moveNext();
25 BOOST_TEST(!clumplet.isEof());
26 BOOST_TEST(clumplet.getClumpTag() == isc_info_sql_batch_fetch);
27 BOOST_TEST(clumplet.getInt() == 0);
28
29 clumplet.moveNext();
30 BOOST_TEST(!clumplet.isEof());
31 BOOST_TEST(clumplet.getClumpTag() == isc_info_end);
32
33 clumplet.moveNext();
34 BOOST_TEST(clumplet.isEof());
35}
36
37
38BOOST_AUTO_TEST_CASE(ClumpletWriteAndSkipInfoResponseTest)

Callers

nothing calls this directly

Calls 7

getClumpTagMethod · 0.80
insertIntMethod · 0.45
insertTagMethod · 0.45
rewindMethod · 0.45
isEofMethod · 0.45
getIntMethod · 0.45
moveNextMethod · 0.45

Tested by

no test coverage detected