You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mutation conditionals-negation is only applied to "==" and "!=" but not to ">", "<=", "<", ">=" if mutation conditionals-boundary is disabled.
To Reproduce
Steps to reproduce the behavior:
With this example code
package f
import "fmt"
func f(a, b int) string {
return fmt.Sprintf("%v %v %v %v %v %v",
a == b,
a != b,
a < b,
a <= b,
a > b,
a >= b,
)
}
run gremlins run --dry-run --conditionals_boundary=false --workers 1
Output is
NOT COVERED CONDITIONALS_NEGATION at f.go:7:5
NOT COVERED CONDITIONALS_NEGATION at f.go:8:5
But with gremlins run --dry-run --workers 1
we get
NOT COVERED CONDITIONALS_NEGATION at f.go:7:5
NOT COVERED CONDITIONALS_NEGATION at f.go:8:5
NOT COVERED CONDITIONALS_BOUNDARY at f.go:9:5
NOT COVERED CONDITIONALS_NEGATION at f.go:9:5
NOT COVERED CONDITIONALS_BOUNDARY at f.go:10:5
NOT COVERED CONDITIONALS_NEGATION at f.go:10:5
NOT COVERED CONDITIONALS_BOUNDARY at f.go:11:5
NOT COVERED CONDITIONALS_NEGATION at f.go:11:5
NOT COVERED CONDITIONALS_BOUNDARY at f.go:12:5
NOT COVERED CONDITIONALS_NEGATION at f.go:12:5
Found behaviour
Only two from six mutations of conditionals-negation are applied.
Expected behaviour
All six mutations should be applied, even if mutation conditionals-boundary is disabled.
Operating System
OS: Linux
Version: go install github.com/go-gremlins/gremlins/cmd/[email protected]
The text was updated successfully, but these errors were encountered:
I found this bug, when comparing mutation testing results of Gremlins and Ooze.
Mutation "conditionals-negation" of Gremlins is equivalent to "comparisoninvert" of Ooze.
🐞Bug Report
Bug Description
The mutation conditionals-negation is only applied to "==" and "!=" but not to ">", "<=", "<", ">=" if mutation conditionals-boundary is disabled.
To Reproduce
Steps to reproduce the behavior:
With this example code
run
gremlins run --dry-run --conditionals_boundary=false --workers 1
Output is
But with
gremlins run --dry-run --workers 1
we get
Found behaviour
Only two from six mutations of conditionals-negation are applied.
Expected behaviour
All six mutations should be applied, even if mutation conditionals-boundary is disabled.
Operating System
The text was updated successfully, but these errors were encountered: