Skip to content

Commit

Permalink
try this codecov thing
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Oct 7, 2024
1 parent 76a1aa2 commit 5630952
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ jobs:
with:
files: lcov.info
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
slug: codecov/codecov-demo

build-qemu:
name: QEMU build & test
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
![checks](https://github.com/trifectatechfoundation/zlib-rs/actions/workflows/checks.yaml/badge.svg?branch=main)
[![codecov](https://codecov.io/gh/trifectatechfoundation/zlib-rs/graph/badge.svg?token=KZLDE24YVL)](https://codecov.io/gh/trifectatechfoundation/zlib-rs)
[![Crates.io](https://img.shields.io/crates/v/libz-rs-sys.svg)](https://crates.io/crates/libz-rs-sys)


# zlib-rs: a safer zlib

This repository contains a Rust implementation of the zlib file format that is compatible with the zlib API.
Expand Down
6 changes: 3 additions & 3 deletions test-libz-rs-sys/src/deflate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2441,7 +2441,7 @@ fn flood_pending_buffer() {
config.mem_level,
config.strategy as i32,
libz_rs_sys::zlibVersion(),
size_of::<z_stream>() as c_int,
core::mem::size_of::<z_stream>() as c_int,
)
};
assert_eq!(ReturnCode::from(err), ReturnCode::Ok);
Expand All @@ -2450,7 +2450,7 @@ fn flood_pending_buffer() {

let mut header = gz_header {
text: 0,
time: 10055284024492657547,
time: 0,
xflags: 0,
os: -1953789045,
extra: extra.as_mut_ptr(),
Expand All @@ -2469,7 +2469,7 @@ fn flood_pending_buffer() {

let mut source: [u8; 0] = [];

let bound = unsafe { deflateBound(stream, source.len() as u64) };
let bound = unsafe { deflateBound(stream, source.len() as _) };
let mut dest = vec![0; bound as usize];

stream.next_in = source.as_mut_ptr().cast();
Expand Down

0 comments on commit 5630952

Please sign in to comment.