Giter Club home page Giter Club logo

Comments (3)

gtramontina avatar gtramontina commented on May 23, 2024

I attempted to address this here https://github.com/gtramontina/ooze#prerequisites (second paragraph).

Not sure if this is what you’re experiencing, though.

Open to alternative implementations! 😅

Edit: permalink:

ooze/readme.md

Line 38 in 1255479

When Ooze reports that it found a living mutant, it will print a diff of the changes the virus made to the source file. The mutant source is printed using Go's [`go/format`](https://pkg.go.dev/go/format) package. This means that, if your source code isn't gofmt'd, the diff may contain some formatting changes that are not relevant to the mutation. This isn't a prerequisite per se, but for a better experience, it is recommended that you run `gofmt` on your source files.

from ooze.

Bios-Marcel avatar Bios-Marcel commented on May 23, 2024

Yes, this seems to solve it. Weird bug though :D I guess we could gofmt both before comparing as a workaround?

from ooze.

gtramontina avatar gtramontina commented on May 23, 2024

Sorry about the delay… I guess running gofmt on the source "on the fly" before comparing can potentially yeild diffs that point to the wrong line/place, generating confusion… 🤔 Hence the recommendation on the readme. I do agree that the opposite can be confusing as well. Perhaps adding a note at the end of the summary mentioning it could help? Something like: If your diffs look weird, consider running gofmt before the mutation tests.

from ooze.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.