MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / is_null_key

Function is_null_key

src/test/dbwrapper_tests.cpp:15–22  ·  view source on GitHub ↗

Test if a string consists entirely of null characters

Source from the content-addressed store, hash-verified

13
14// Test if a string consists entirely of null characters
15static bool is_null_key(const std::vector<unsigned char>& key) {
16 bool isnull = true;
17
18 for (unsigned int i = 0; i < key.size(); i++)
19 isnull &= (key[i] == '\x00');
20
21 return isnull;
22}
23
24BOOST_FIXTURE_TEST_SUITE(dbwrapper_tests, BasicTestingSetup)
25

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected