Branch Coverage

t/svapi/scope.cc
Criterion Covered Total %
branch 26 52 50.0


line true false branch
8 0 4 if (items != 2) croak("epta!");
9 4 0 auto name = xs::in(ST(0));
11 4 0 Scope::Hints::set(name, val);
17 0 5 if (items != 1) croak("epta!");
18 5 0 auto name = xs::in(ST(0));
19 5 0 auto ret = Scope::Hints::exists(name);
20 2 3 ST(0) = ret ? &PL_sv_yes : &PL_sv_no;
26 0 7 if (items != 1) croak("epta!");
27 7 0 auto name = xs::in(ST(0));
28 7 0 auto ret = Scope::Hints::get(name);
29 7 0 ST(0) = ret.detach_mortal();
35 0 4 if (items != 1) croak("epta!");
36 4 0 auto name = xs::in(ST(0));
37 4 0 Scope::Hints::remove(name);
43 0 3 if (items != 0) croak("epta!");
44 3 0 auto ret = Scope::Hints::get();
45 0 3 EXTEND(SP, 1);
0 0 EXTEND(SP, 1);
46 3 0 ST(0) = Ref::create(ret).detach_mortal();
3 0 ST(0) = Ref::create(ret).detach_mortal();
52 0 1 if (items != 1) croak("epta!");
53 1 0 auto name = xs::in(ST(0));
54 1 0 auto ret = Scope::Hints::get_ct(name);
55 1 0 ST(0) = ret.detach_mortal();
70 34 0 static bool _init = init();
34 0 static bool _init = init();