Skip to content

Invert loop control

Invert loop control will perform inversions on control operations, which means a continue will become a break.

Mutation table

Orig Mutation
continue break
break continue

Examples

for i := 0; i < 3; i++ {
    continue
}
for i := 0; i < 3; i++ {
    break
}