Branch Coverage

xs/Diff.xs
Criterion Covered Total %
branch 37 58 63.7


line true false branch
93 8 0 ctx = GIMME_V;
95 1 7 if (ctx == G_VOID)
100 6 1 if (items == 2) {
103 5 1 if (!SvIOK(index) || SvIV(index) < 0)
5 0 if (!SvIOK(index) || SvIV(index) < 0)
0 5 if (!SvIOK(index) || SvIV(index) < 0)
0 0 if (!SvIOK(index) || SvIV(index) < 0)
106 0 5 start = SvUV(index);
107 1 4 if (start >= num_deltas)
115 6 5 for (; start < end; ++start) {
126 0 6 mXPUSHs(delta);
142 2 2 if (items == 2) {
149 1 0 if ((hopt = git_hv_hash_entry(opts, "flags")))
152 1 0 if ((opt = git_hv_int_entry(opts, "rename_threshold")))
153 1 0 find_opts.rename_threshold = SvIV(opt);
155 1 0 if ((opt = git_hv_int_entry(opts, "rename_from_rewrite_threshold")))
156 1 0 find_opts.rename_from_rewrite_threshold = SvIV(opt);
158 1 0 if ((opt = git_hv_int_entry(opts, "copy_threshold")))
159 1 0 find_opts.copy_threshold = SvIV(opt);
161 1 0 if ((opt = git_hv_int_entry(opts, "break_rewrite_threshold")))
162 1 0 find_opts.break_rewrite_threshold = SvIV(opt);
164 1 0 if ((opt = git_hv_int_entry(opts, "rename_limit")))
165 1 0 find_opts.rename_limit = SvIV(opt);
198 9 0 ctx = GIMME_V;
200 8 1 if (ctx != G_VOID) {
207 7 1 if (ctx == G_ARRAY) {
210 10 7 for (i = 0; i < count; ++i) {
221 0 10 mXPUSHs(tmp);
226 0 1 mXPUSHs(newSViv((int) count));