Branch Coverage

xs/XLog.xsi
Criterion Covered Total %
branch 38 76 50.0


line true false branch
151 8 0 Stash stash(__PACKAGE__);
153 8 0 xs::exp::create_constants(stash, {
8 0 xs::exp::create_constants(stash, {
8 0 xs::exp::create_constants(stash, {
8 0 xs::exp::create_constants(stash, {
8 0 xs::exp::create_constants(stash, {
8 0 xs::exp::create_constants(stash, {
8 0 xs::exp::create_constants(stash, {
8 0 xs::exp::create_constants(stash, {
8 0 xs::exp::create_constants(stash, {
8 0 xs::exp::create_constants(stash, {
72 8 xs::exp::create_constants(stash, {
0 0 xs::exp::create_constants(stash, {
163 8 0 });
165 8 0 auto root_module = xs::out(&::panda_log_module);
167 8 0 stash.add_const_sub("default_format", xs::out(default_format));
8 0 stash.add_const_sub("default_format", xs::out(default_format));
168 8 0 stash.add_const_sub("root", root_module);
169 8 0 stash.store("root_module", root_module);
171 8 0 xs::at_perl_destroy([]{
172 8 0 if (dyn_cast(get_logger().get())) set_logger(nullptr);
0 8 if (dyn_cast(get_logger().get())) set_logger(nullptr);
0 0 if (dyn_cast(get_logger().get())) set_logger(nullptr);
173 8 0 if (dyn_cast(get_formatter().get())) set_formatter(nullptr);
0 8 if (dyn_cast(get_formatter().get())) set_formatter(nullptr);
0 0 if (dyn_cast(get_formatter().get())) set_formatter(nullptr);
174 8 0 });
177 31 0 void set_level (Level level, string_view module = {})
179 55 0 void set_logger (ILoggerSP logger)
55 0 void set_logger (ILoggerSP logger)
183 52 0 set_formatter(fmt);
52 0 set_formatter(fmt);
187 1 0
189 1 0
191 3 0
194 31 33 if (!(PL_op->op_spare & 1)) xlog::optimize();
199 20 0 }
208 54 48 if (!(PL_op->op_spare & 1)) xlog::optimize(level);