Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flying-sheep/region-cov-example
An example for Rust region coverage
https://github.com/flying-sheep/region-cov-example
Last synced: about 1 month ago
JSON representation
An example for Rust region coverage
- Host: GitHub
- URL: https://github.com/flying-sheep/region-cov-example
- Owner: flying-sheep
- Created: 2022-12-08T14:42:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-09T13:29:51.000Z (9 months ago)
- Last Synced: 2024-04-09T17:32:53.916Z (9 months ago)
- Language: Rust
- Homepage: https://flying-sheep.github.io/region-cov-example/
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# region-cov-example
An example for Rust region coverage
In the [single source file](https://flying-sheep.github.io/region-cov-example/coverage/src/lib.rs.html),
all lines are covered, but one `if` branch is not:![grafik](https://user-images.githubusercontent.com/291575/206483176-8d51afbe-4581-4076-a0eb-a8145a799d2f.png)
This is only captured in the “regions” metric in the [summary](https://flying-sheep.github.io/region-cov-example/):
![grafik](https://user-images.githubusercontent.com/291575/206483330-c2ef57e1-32c0-4198-aba4-b5e1847aadc0.png)
([the branch metric is broken](https://github.com/rust-lang/rust/issues/79649),
and I’m not sure what it even means: Shouldn’t “regions” be “branches, but actually correct and not ignoring in-line branchings”?)