Skip to content

smarter stop method 'constant' #121

@arnobl

Description

@arnobl

Characteristics

  • Issue Type: [feature]
  • Reproducibility: [always]
  • Severity: [feature]
  • Tool/Service/Component: [descartes/constant, 1.2.7-SNAP]
  • Execution Environment: [j11, linux]

Description

The stop method 'constant' sometimes creates a mutant that returns the exact same value of the returned constant. I face this limitation in abstract classes that have some methods with default behavior (eg https://github.com/interacto/interacto-java-api/blob/master/src/main/java/io/github/interacto/binding/WidgetBindingImpl.java#L243). The method returns false and Descartes creates a mutant that returns true while it should just create a mutant that returns false.

Do you think that is possible to improve that?

Steps to reproduce

Create a method that returns true.
Enable except[constant]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions