gtramontina / ooze

đŸ§¬ Go Mutation Testing
MIT License
254 stars 8 forks source link

Invalid application of virus `arithmetic.New()` #17

Open Bios-Marcel opened 1 year ago

Bios-Marcel commented 1 year ago

Output shows, that the virus arithmetic.New() has been applied to a string concatenation, which causes a build failure.

internal/service/routing.go:168:9: invalid operation: operator - not defined on "/" (constant of type string)

This was the code:

func HealthPath() string {
    return "/" + path.Join(BasePathInternalCases(), "health")
}

I am assuming this is not intended behaviour.

gtramontina commented 1 year ago

Good catch! Indeed… not the intended behavior.