| line |
true |
false |
branch |
|
78
|
19 |
0 |
if (memEQ(s, "day", 3)) |
|
82
|
614 |
0 |
if (memEQ(s, "year", 4)) |
|
84
|
0 |
0 |
if (memEQ(s, "hour", 4)) |
|
88
|
19 |
9 |
if (memEQ(s, "month", 5)) |
|
90
|
9 |
0 |
if (memEQ(s, "epoch", 5)) |
|
94
|
0 |
87 |
if (memEQ(s, "minute", 6)) |
|
96
|
0 |
87 |
if (memEQ(s, "second", 6)) |
|
98
|
87 |
0 |
if (memEQ(s, "offset", 6)) |
|
102
|
66 |
3 |
if (memEQ(s, "lenient", 7)) |
|
104
|
3 |
0 |
if (memEQ(s, "reduced", 7)) |
|
108
|
212 |
0 |
if (memEQ(s, "precision", 9)) |
|
112
|
9 |
0 |
if (memEQ(s, "nanosecond", 10)) |
|
135
|
0 |
5 |
if (!SvROK(sv)) |
|
138
|
5 |
0 |
if (!SvOBJECT(rv) || !SvSTASH(rv)) |
|
|
0 |
5 |
if (!SvOBJECT(rv) || !SvSTASH(rv)) |
|
140
|
1 |
4 |
if (!(method = gv_fetchmethod(SvSTASH(rv), name))) |
|
145
|
0 |
4 |
PUSHMARK(SP); |
|
146
|
0 |
4 |
XPUSHs(sv); |
|
150
|
0 |
4 |
if (count != 1) |
|
154
|
4 |
0 |
FREETMPS; |
|
161
|
1 |
0 |
if (sv_isobject(sv)) { |
|
173
|
0 |
0 |
if (swap) { |
|
192
|
0 |
64 |
if (!SvROK(sv)) |
|
203
|
0 |
124993 |
SvGETMAGIC(sv); |
|
|
0 |
0 |
SvGETMAGIC(sv); |
|
204
|
0 |
124993 |
if (!SvROK(sv)) |
|
207
|
124993 |
0 |
if (!(SvOBJECT(rv) && SvSTASH(rv) && SvPOKp(rv) && SvCUR(rv) == size)) |
|
|
124993 |
0 |
if (!(SvOBJECT(rv) && SvSTASH(rv) && SvPOKp(rv) && SvCUR(rv) == size)) |
|
|
124988 |
5 |
if (!(SvOBJECT(rv) && SvSTASH(rv) && SvPOKp(rv) && SvCUR(rv) == size)) |
|
|
0 |
124988 |
if (!(SvOBJECT(rv) && SvSTASH(rv) && SvPOKp(rv) && SvCUR(rv) == size)) |
|
209
|
2 |
124986 |
return (SvSTASH(rv) == stash || sv_derived_from(sv, klass)); |
|
|
2 |
0 |
return (SvSTASH(rv) == stash || sv_derived_from(sv, klass)); |
|
217
|
0 |
2493 |
SvGETMAGIC(sv); |
|
|
0 |
0 |
SvGETMAGIC(sv); |
|
218
|
0 |
2493 |
if (SvROK(sv)) { |
|
220
|
0 |
0 |
if (SvOBJECT(rv) && SvSTASH(rv)) |
|
|
0 |
0 |
if (SvOBJECT(rv) && SvSTASH(rv)) |
|
224
|
2492 |
1 |
if (len == namelen && memEQ(pv, name, namelen)) |
|
|
2492 |
0 |
if (len == namelen && memEQ(pv, name, namelen)) |
|
237
|
0 |
118468 |
if (!THX_sv_isa_moment(aTHX_ sv)) |
|
251
|
0 |
5 |
if (THX_sv_isa_moment(aTHX_ sv)) |
|
254
|
4 |
1 |
if(!res || !THX_sv_isa_moment(aTHX_ res)) |
|
|
0 |
4 |
if(!res || !THX_sv_isa_moment(aTHX_ res)) |
|
257
|
1 |
3 |
if (SvSTASH(rv) != stash) { |
|
309
|
0 |
29860 |
if (items < 1) |
|
321
|
0 |
8 |
if (items < 3) |
|
328
|
0 |
8 |
if (!sv_isa_moment(svm2)) |
|
332
|
0 |
8 |
if (swap) { |
|
347
|
1 |
1 |
if (utc) |
|
361
|
0 |
1 |
if (tm == NULL) |
|
411
|
0 |
614 |
if (((items - 1) % 2) != 0) |
|
414
|
735 |
614 |
for (i = 1; i < items; i += 2) { |
|
456
|
191 |
232 |
if (items == 2) { |
|
457
|
6 |
185 |
if (SvIOK(seconds)) |
|
462
|
14 |
218 |
else if (items == 3) { |
|
469
|
0 |
218 |
if ((items % 2) != 0) |
|
472
|
218 |
218 |
for (i = 2; i < items; i += 2) { |
|
485
|
9 |
209 |
if (nanosecond) |
|
488
|
0 |
209 |
if (SvIOK(seconds)) |
|
508
|
0 |
777 |
if ((items % 2) != 0) |
|
512
|
66 |
777 |
for (i = 2; i < items; i += 2) { |
|
513
|
66 |
0 |
switch (sv_moment_param(ST(i))) { |
|
541
|
0 |
672 |
if ((items % 2) != 0) |
|
549
|
16 |
672 |
for (i = 2; i < items; i += 2) { |
|
558
|
4 |
0 |
if (ix == 0) { |
|
567
|
225 |
447 |
if (ix == 0) RETVAL = moment_from_rd(jd, epoch, precision, offset); |
|
568
|
223 |
224 |
else if (ix == 1) RETVAL = moment_from_jd(jd, epoch, precision); |
|
604
|
85 |
2865 |
if (moment_equals(self, &RETVAL)) |
|
606
|
30 |
2835 |
if (sv_reusable(ST(0))) { |
|
|
30 |
0 |
if (sv_reusable(ST(0))) { |
|
|
30 |
0 |
if (sv_reusable(ST(0))) { |
|
|
30 |
0 |
if (sv_reusable(ST(0))) { |
|
631
|
416 |
7187 |
if (value == 0) |
|
634
|
4 |
7183 |
if (sv_reusable(ST(0))) { |
|
|
4 |
0 |
if (sv_reusable(ST(0))) { |
|
|
4 |
0 |
if (sv_reusable(ST(0))) { |
|
|
0 |
4 |
if (sv_reusable(ST(0))) { |
|
659
|
390 |
5764 |
if (value == 0) |
|
662
|
0 |
5764 |
if (sv_reusable(ST(0))) { |
|
|
0 |
0 |
if (sv_reusable(ST(0))) { |
|
|
0 |
0 |
if (sv_reusable(ST(0))) { |
|
|
0 |
0 |
if (sv_reusable(ST(0))) { |
|
698
|
0 |
6508 |
SvGETMAGIC(adjuster); |
|
|
0 |
0 |
SvGETMAGIC(adjuster); |
|
699
|
6508 |
0 |
if (SvROK(adjuster)) |
|
701
|
6508 |
0 |
if (SvTYPE(adjuster) != SVt_PVCV || SvOBJECT(adjuster)) |
|
|
0 |
6508 |
if (SvTYPE(adjuster) != SVt_PVCV || SvOBJECT(adjuster)) |
|
703
|
0 |
6508 |
PUSHMARK(SP); |
|
707
|
0 |
6508 |
if (count != 1) |
|
709
|
0 |
6508 |
if (!sv_isa_moment(ST(0))) |
|
744
|
445 |
4431 |
if (moment_equals(self, &RETVAL)) |
|
746
|
30 |
4401 |
if (sv_reusable(ST(0))) { |
|
|
30 |
0 |
if (sv_reusable(ST(0))) { |
|
|
30 |
0 |
if (sv_reusable(ST(0))) { |
|
|
30 |
0 |
if (sv_reusable(ST(0))) { |
|
763
|
25 |
18 |
if (ix == 0) |
|
768
|
7 |
36 |
if (moment_equals(self, &RETVAL)) |
|
770
|
4 |
32 |
if (sv_reusable(ST(0))) { |
|
|
4 |
0 |
if (sv_reusable(ST(0))) { |
|
|
4 |
0 |
if (sv_reusable(ST(0))) { |
|
|
4 |
0 |
if (sv_reusable(ST(0))) { |
|
862
|
0 |
661 |
if (((items - 1) % 2) != 0) |
|
865
|
0 |
661 |
for (i = 1; i < items; i += 2) { |
|
866
|
0 |
0 |
switch (sv_moment_param(ST(i))) { |
|
910
|
2 |
0 |
if (ix == 0) |
|
914
|
0 |
2 |
EXTEND(SP, 3); |
|
929
|
0 |
4 |
if ((items % 2) != 0) |
|
932
|
0 |
4 |
for (i = 2; i < items; i += 2) { |
|
933
|
0 |
0 |
switch (sv_moment_param(ST(i))) { |
|
941
|
4 |
0 |
if (precision == 9) |
|
963
|
4 |
4 |
XSRETURN_BOOL(v); |
|
969
|
0 |
0 |
XSRETURN_BOOL(moment_is_leap_year(self)); |
|
982
|
0 |
634 |
if (SvUTF8(format)) |
|
993
|
0 |
1137 |
if (((items - 1) % 2) != 0) |
|
997
|
3 |
1137 |
for (i = 1; i < items; i += 2) { |
|
998
|
3 |
0 |
switch (sv_moment_param(ST(i))) { |