• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OSSystems / compress-tools-rs / 24833180901
78%

Build:
DEFAULT BRANCH: master
Ran 23 Apr 2026 11:42AM UTC
Jobs 1
Files 16
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Apr 2026 11:40AM UTC coverage: 78.854% (-0.3%) from 79.11%
24833180901

push

github

otavio
keep errno value in Error enum

My goal is to make code calling uncompress_archive to distinguish No
space left on device from other error conditions. This is related to
https://github.com/OSSystems/compress-tools-rs/issues/143 .

With this change, the error goes from:

```
thread 'main' (1282548) panicked at src/main.rs:8:63:
called `Result::unwrap()` on an `Err` value: Extraction("Can't create '/tmp/foo/make-4.4.1/NEWS'")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

to

```
thread 'main' (1287751) panicked at src/main.rs:8:63:
called `Result::unwrap()` on an `Err` value: ExtractionIo { code: Os { code: 28, kind: StorageFull, message: "No space left on device" }, details: "Can't create '/tmp/foo/make-4.4.1/NEWS'" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

which is much more explanatory. Besides, calling code can now inspect
the cause of the error:
```
if let Err(e) = uncompress_archive(&mut source, &dest, Ownership::Ignore) {
      if let Some(ioerror) =  e.source().and_then(|s| s.downcast_ref::<std::io::Error>()) {
          if ioerror.kind() == std::io::ErrorKind::StorageFull {
              println!("detected storage full")
          }
      }
  }
```

Fixes: https://github.com/OSSystems/compress-tools-rs/issues/143

10 of 20 new or added lines in 2 files covered. (50.0%)

1816 of 2303 relevant lines covered (78.85%)

84.48 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
50.0
-3.61% tests/disk_full_test.rs
2
88.46
-2.84% src/error.rs
Jobs
ID Job ID Ran Files Coverage
1 24833180901.1 23 Apr 2026 11:42AM UTC 16
78.85
GitHub Action Run
Source Files on build 24833180901
  • Tree
  • List 16
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24833180901
  • 59dd62c4 on github
  • Prev Build on master (#24807927905)
  • Next Build on master (#24833897336)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc