MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / test_stl_containers

Function test_stl_containers

scripts/test_stringzilla.cpp:4440–4450  ·  view source on GitHub ↗

* @brief Tests constructing STL containers with StringZilla strings. */

Source from the content-addressed store, hash-verified

4438 * @brief Tests constructing STL containers with StringZilla strings.
4439 */
4440void test_stl_containers() {
4441 std::map<sz::string, int> sorted_words_sz;
4442 std::unordered_map<sz::string, int> words_sz;
4443 assert(sorted_words_sz.empty());
4444 assert(words_sz.empty());
4445
4446 std::map<std::string, int, sz::less> sorted_words_stl;
4447 std::unordered_map<std::string, int, sz::hash, sz::equal_to> words_stl;
4448 assert(sorted_words_stl.empty());
4449 assert(words_stl.empty());
4450}
4451
4452int main(int argc, char const **argv) {
4453

Callers 1

mainFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…