Skip to content

Multiplication mutation to Division #29

@kob-h

Description

@kob-h

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions