Branch Coverage

XS.xs
Criterion Covered Total %
branch 34 50 68.0


line true false branch
12 22 16 if (pos < 3) {
28 1 0 char* str = SvPVbyte(svstr, len);
29 0 1 if (len != ULID_LEN) croak("invalid string length in encode_ulid: %d", len);
44 2 1 for (part = 0; part < 2; ++part) {
48 16 2 for (; i < len; ++i) {
49 38 16 while (last_pos < 8) {
53 26 12 if (last_pos <= 8) {
77 12 2 for (i = ULID_TIME_LEN - 1; i >= 0; --i) {
85 20 2 for (i = ULID_TIME_LEN; i < ULID_LEN; ++i) {
86 0 20 if (len < ULID_RAND_LEN) {
109 0 2 PUSHMARK(SP);
111 1 1 if (items == 0) {
116 0 1 if (count != 1) {
124 0 1 EXTEND(SP, 1);
132 0 1 if (count != 1) {
150 0 3 PUSHMARK(SP);
152 2 1 if (items == 0) {
160 0 2 if (count != 1) {
165 2 0 double time = SvNV(time_sv);
167 0 2 EXTEND(SP, 2);
176 0 2 if (count != 1) {
182 2 0 char *randomness = SvPVbyte(randomness_sv, len);
184 2 0 FREETMPS;
190 0 1 EXTEND(SP, 1);
198 0 1 if (count != 1) {