Git Product home page Git Product logo

Comments (2)

sourcefrog avatar sourcefrog commented on May 18, 2024

An interesting test of this would be https://github.com/rbtcollins/fs_at which on Linux finds missed mutants only on Windows.

This example indicates a couple of wrinkles, in https://github.com/rbtcollins/fs_at/blob/main/src/lib.rs#L22:

  1. Rather than the module or individual functions having a #![cfg(windows)], it's the mod that includes them including module. Currently cargo-mutants doesn't look at mod statements at all, but rather it just reads everything. Maybe it would have to.
  2. And, it's not even a simple #[cfg(windows)] but rather a cfg_if macro, though perhaps it could be rewritten.

Maybe there is a way to get the "preprocessed" expansion of cfg lines or even macros and look at that...

We could use --emit mir and then scrape that to try to determine which functions occur in the result.

from cargo-mutants.

sourcefrog avatar sourcefrog commented on May 18, 2024

https://github.com/stacks-network/stacks-core/blob/8235472058e1a981f3badb7e897e418281a80ec5/clarity/src/vm/mod.rs#L44-L45

is an example of where it would help to understand cfg booleans like any, and even features.

#[cfg(any(test, feature = "testing"))]
pub mod tests;

from cargo-mutants.

Related Issues (20)

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.