Branch Coverage

src/xs/typemap/containers.h
Criterion Covered Total %
branch 44 76 57.8


line true false branch
22 1 0 auto out = Array::create(data.size());
23 5 1 for(const auto& i : data){
24 5 0 out.push(xs::out(i));
5 0 out.push(xs::out(i));
26 1 0 return Ref::create(out);
31 1 0 out.reserve(arg.size());
1 0 out.reserve(arg.size());
32 1 0 for(const auto& i : arg){
1 0 for(const auto& i : arg){
5 1 for(const auto& i : arg){
5 0 for(const auto& i : arg){
33 5 0 out.emplace_back(xs::in(i));
5 0 out.emplace_back(xs::in(i));
43 1 0 auto out = Hash::create(data.size());
1 0 auto out = Hash::create(data.size());
44 4 1 for(const auto& i : data){
3 1 for(const auto& i : data){
45 4 0 auto key = typemap::containers::to_key(i.first);
46 4 0 out.store(key, xs::out(i.second));
4 0 out.store(key, xs::out(i.second));
3 0 out.store(key, xs::out(i.second));
3 0 out.store(key, xs::out(i.second));
48 1 0 return Ref::create(out);
1 0 return Ref::create(out);
53 1 0 for (const auto& element : arg){
4 1 for (const auto& element : arg){
1 0 for (const auto& element : arg){
3 1 for (const auto& element : arg){
54 4 0 K key = xs::in(Simple(element.key()));
4 0 K key = xs::in(Simple(element.key()));
3 0 K key = xs::in(Simple(element.key()));
3 0 K key = xs::in(Simple(element.key()));
55 4 0 V value = xs::in(element.value());
4 0 V value = xs::in(element.value());
3 0 V value = xs::in(element.value());
3 0 V value = xs::in(element.value());
56 4 0 out.emplace(key, value);
3 0 out.emplace(key, value);