expanding inlined ifs and fors, because code-coverage does not work in these cases