xs/Worktree.xs | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 22 | 30 | 73.3 |
line | true | false | branch |
---|---|---|---|
24 | 2 | 0 | GIT_NEW_OBJ_WITH_MAGIC( |
47 | 1 | 1 | if (rc != 0) |
50 | 1 | 0 | GIT_NEW_OBJ_WITH_MAGIC( |
107 | 3 | 0 | ctx = GIMME_V; |
109 | 2 | 1 | if (ctx != G_VOID) { |
113 | 4 | 2 | for (i = 0; i < worktrees.count; ++i) { |
114 | 2 | 2 | if (ctx == G_ARRAY) |
115 | 0 | 2 | mXPUSHs(newSVpv(worktrees.strings[i], 0)); |
120 | 1 | 1 | if (ctx == G_ARRAY) |
122 | 0 | 1 | mXPUSHi((int) num_worktrees); |
137 | 0 | 3 | if (rc < 0) { |
142 | 1 | 2 | if (rc > 0) |
143 | 0 | 1 | mXPUSHp (buf.ptr, buf.size); |
145 | 0 | 2 | mXPUSHi (0); |
198 | 1 | 1 | if (rc == 0) |