File Coverage

Strength.xsi
Criterion Covered Total %
statement 6 7 85.7
branch 10 20 50.0
condition n/a
subroutine n/a
pod n/a
total 16 27 59.2


line stmt bran cond sub pod time code
1             MODE: INLINE
2              
3             #include <xs.h>
4             #include <kiwi/kiwi.h>
5              
6             MODULE = Intertangle::API::Kiwisolver PACKAGE = Intertangle::API::Kiwisolver::Strength
7             PROTOTYPES: DISABLE
8              
9             double create( double a, double b, double c, double w = 1.0 ) {
10 0           RETVAL = kiwi::strength::create(a, b, c, w);
11             }
12              
13             BOOT {
14 16 50         Stash stash = Stash(__PACKAGE__, GV_ADD);
15 8 50         stash.mark_as_loaded(__MODULE__);
16 8 50         stash.add_const_sub("REQUIRED" , Simple(kiwi::strength::required) );
    50          
17 8 50         stash.add_const_sub("STRONG" , Simple(kiwi::strength::strong) );
    50          
18 8 50         stash.add_const_sub("MEDIUM" , Simple(kiwi::strength::medium) );
    50          
19 8 50         stash.add_const_sub("WEAK" , Simple(kiwi::strength::weak) );
    50          
20             }