Branch Coverage

lib/List/Utils/MoveElement.xs
Criterion Covered Total %
branch 24 28 85.7


line true false branch
16 6 0 if (idx > items - 2) {
21 42 6 for (tmp_idx = 0; tmp_idx < items; tmp_idx++) {
26 5 1 if (idx == 0 || items == 2) {
31 15 5 for (tmp_idx = idx; tmp_idx >= 1; tmp_idx--) {
52 6 0 if (idx > end_idx) {
57 42 6 for (tmp_idx = 0; tmp_idx < items; tmp_idx++) {
62 5 1 if (idx == end_idx || items == 2) {
67 15 5 for (tmp_idx = idx; tmp_idx <= end_idx-1; tmp_idx++) {
88 6 0 if (idx > end_idx) {
93 42 6 for (tmp_idx = 0; tmp_idx < items; tmp_idx++) {
98 1 5 if (idx == 0 || items == 2) {
123 6 0 if (idx > end_idx) {
128 42 6 for (tmp_idx = 0; tmp_idx < items; tmp_idx++) {
133 1 5 if (idx == end_idx || items == 2) {