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