File Coverage

Backtrace.xs
Criterion Covered Total %
statement 10 10 100.0
branch 11 22 50.0
condition n/a
subroutine n/a
pod n/a
total 21 32 65.6


line stmt bran cond sub pod time code
1             #include
2             #include "src/xs/backtrace.h"
3              
4             using namespace xs;
5             using namespace panda::backtrace;
6             using namespace panda;
7              
8             MODULE = Exception::Backtrace PACKAGE = Exception::Backtrace
9             PROTOTYPES: DISABLE
10              
11             BOOT {
12 6           backtrace_c_marker.svt_free = &xs::payload_backtrace_c_free;
13 6           install_exception_processor(); // XS::Framework
14 6           install_backtracer(); // XS::libpanda
15             }
16              
17             panda::string get_backtrace_string(Ref except) {
18 12 50         RETVAL = get_backtrace_string(except);
    50          
    50          
19             }
20              
21             panda::string get_backtrace_string_pp(Ref except) {
22 1 50         RETVAL = get_backtrace_string_pp(except);
    50          
    50          
23             }
24              
25             iptr get_backtrace(Ref except) {
26 4           RETVAL = get_backtrace(except);
27 2 50         }
    50          
28              
29             iptr create_backtrace() {
30 2           RETVAL = create_backtrace();
31 1 50         }
32              
33 21 50         Sv safe_wrap_exception(Sv ex) { RETVAL = safe_wrap_exception(ex); }
    50          
34              
35             INCLUDE: DualTrace.xsi
36              
37             INCLUDE: BacktraceInfo.xsi
38              
39             INCLUDE: Stackframe.xsi