src/xs/Object.cc

filter: Statementstmt 84.6% 11 / 13 Branchbran 31.2% 5 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 55.1% 16 / 29 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« t/typemap/function.cc ↑ Summary t/typemap/callback_dispatcher_xsgen.cc »
1 #include <xs/Object.h>
2 #include <xs/Stash.h>
3  
4 namespace xs {
5  
6 2 void Object::stash (const Stash& stash) {
7 2 auto old = SvSTASH(sv);
8 2 SvSTASH_set(sv, (HV*)SvREFCNT_inc_simple(stash.get()));
9 2 SvREFCNT_dec(old);
10 2 }
11  
12 0 ▶Sub Object::method (const Sv& name) const { return stash().method(name); }
Branch: 2 branches
BranchTrueFalseTotal
Sub Object::method (const Sv& name) const { return stash().method(name); } 0 0 0
Sub Object::method (const Sv& name) const { return stash().method(name); } 0 0 0
13 13 ▶Sub Object::method (const panda::string_view& name) const { return stash().method(name); }
Branch: 2 branches
BranchTrueFalseTotal
Sub Object::method (const panda::string_view& name) const { return stash().method(name); } 13 0 13
Sub Object::method (const panda::string_view& name) const { return stash().method(name); } 13 0 13
14 0 ▶Sub Object::method_strict (const Sv& name) const { return stash().method_strict(name); }
Branch: 2 branches
BranchTrueFalseTotal
Sub Object::method_strict (const Sv& name) const { return stash().method_strict(name); } 0 0 0
Sub Object::method_strict (const Sv& name) const { return stash().method_strict(name); } 0 0 0
15 7 ▶Sub Object::method_strict (const panda::string_view& name) const { return stash().method_strict(name); }
Branch: 2 branches
BranchTrueFalseTotal
Sub Object::method_strict (const panda::string_view& name) const { return stash().method_strict(name); } 7 0 7
Sub Object::method_strict (const panda::string_view& name) const { return stash().method_strict(name); } 6 1 7
16  
17 1 void Object::rebless (const Stash& stash) {
18 1 _check_ref();
19 1 sv_bless(_ref, stash);
20 1 }
21  
22 }
« t/typemap/function.cc ↑ Summary t/typemap/callback_dispatcher_xsgen.cc »