Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiplication mutation to Division #29

Open
kob-h opened this issue Apr 5, 2024 · 0 comments
Open

Multiplication mutation to Division #29

kob-h opened this issue Apr 5, 2024 · 0 comments

Comments

@kob-h
Copy link

kob-h commented Apr 5, 2024

I have the following code:

package mutation

type Calculator struct {
}

func (c *Calculator) Multiply(a int, b int) int {
	return a * b
}
package mutation_test

import (
	mutation "awesomeProject"
	"github.com/stretchr/testify/assert"
	"testing"
)

func TestMe(t *testing.T) {
	c := mutation.Calculator{}
	res := c.Multiply(1, 1)
	assert.Equal(t, 1, res)
}

When I run go-mutation I get the results:
The mutation score is 0.000000 (0 passed, 0 failed, 0 duplicated, 0 skipped, total is 0)
While I expected to get a result that shows me that multiplication can be replaced for division for this specific test data.
I believe this is an issue?

Thanks,
Kobi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant