Branch Coverage

xs/Formatter.xsi
Criterion Covered Total %
branch 19 38 50.0


line true false branch
6 1 0 RETVAL = new PerlObjectFormatter();
7 1 0 }
1 0 }
1 0 }
8 1 0
46 8 0 Stash(__PACKAGE__).inherit("XLog::IFormatter");
8 0 Stash(__PACKAGE__).inherit("XLog::IFormatter");
50 8 0 auto $0_sv = get_sv("0", 0);
52 0 8 Newx(mg, 1, MAGIC);
0 8 Newx(mg, 1, MAGIC);
8 0 Newx(mg, 1, MAGIC);
63 0 8 auto $0 = SvPV_nolen($0_sv);
8 0 auto $0 = SvPV_nolen($0_sv);
64 8 0 set_program_name(decorate_default($0));
68 1 0
69 1 0 void set_program_decorator(Sub callback) {
1 0 void set_program_decorator(Sub callback) {
70 1 0 Stash stash(__PACKAGE__);
71 1 0 stash.store(DECORATOR_KEY, callback);