Branch Coverage

deps/libzmqraw/eventmap.cc
Criterion Covered Total %
branch 21 36 58.3


line true false branch
39 10 0 return new (std::nothrow) zmq_raw_event_map();
44 10 0 delete map;
49 0 178 assert (map);
51 178 0 map->insert (std::make_pair (ptr, value));
56 0 109 assert (map);
58 109 0 DataMap::iterator it = map->find (ptr);
59 109 0 if (it != map->end())
61 109 0 map->erase (it);
67 0 639 assert (map);
69 639 0 DataMap::const_iterator it = map->find (ptr);
70 332 307 if (it == map->end())
78 0 81 assert (map);
84 0 5 assert (map);
86 4 1 if (map->empty())
89 1 0 zmq_raw_event_map_iterator *iterator = new (std::nothrow) zmq_raw_event_map_iterator();
90 1 0 if (iterator)
106 1 1 if (++iterator->it == iterator->map->end())
114 0 2 assert (iterator);