Comments (2)
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:
- Rather than the module or individual functions having a
#![cfg(windows)]
, it's themod
that includes them including module. Currently cargo-mutants doesn't look atmod
statements at all, but rather it just reads everything. Maybe it would have to. - And, it's not even a simple
#[cfg(windows)]
but rather acfg_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.
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)
- Run a jobserver shared across all children
- Support #[mutants::skip] attribute on more statements
- `.ignore` files can exclude files that should be copied HOT 7
- Mutating const functions can cause the build to hang HOT 10
- Document `--timeout-multiplier` HOT 2
- Delete fields from struct literals that have a base (default) expression
- Module file path incorrect when nested under `mod` block HOT 3
- Separate finding modules from generating mutants?
- Write one consolidated output json
- Clean warning and success if the `--in-diff` diff file is empty?
- panic at `src/lab.rs:134:26` when interrupted
- 'impl trait' representation in mutant names can be wrong vs Rust source
- Follow `path` attribute on inline `mod` blocks HOT 5
- CI job that tests against some interesting/popular open source trees
- Try using a build profile that is quick but has no debug symbols
- More detail in CONTRIBUTING.md or the book about how to add new patterns
- Automatically merge results from multiple sharded jobs
- Test that requires copying `.git` HOT 3
- Support more cargo test flags HOT 2
- cargo-mutants doesn't work on tarpaulin tree HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-mutants.