Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start parsing the chunks file with serde #31

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
rip out old chunks parser
  • Loading branch information
Swatinem committed Nov 19, 2024
commit 35f0674cf78653df2ac13d79a65b057bba4538ed
4 changes: 2 additions & 2 deletions core/benches/pyreport.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::collections::HashMap;

use codecov_rs::{
parsers::pyreport::{chunks_serde, report_json},
parsers::pyreport::{chunks, report_json},
test_utils::test_report::TestReportBuilder,
};
use criterion::{criterion_group, criterion_main, Criterion};
@@ -104,5 +104,5 @@ fn complex_chunks(c: &mut Criterion) {

fn parse_chunks_file_serde(input: &[u8], report_json: report_json::ParsedReportJson) {
let report_builder = TestReportBuilder::default();
chunks_serde::parse_chunks_file(input, report_json, report_builder).unwrap();
chunks::parse_chunks_file(input, report_json, report_builder).unwrap();
}
2 changes: 1 addition & 1 deletion core/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use thiserror::Error;

use crate::parsers::pyreport::chunks_serde::ChunksFileParseError;
use crate::parsers::pyreport::chunks::ChunksFileParseError;

pub type Result<T, E = CodecovError> = std::result::Result<T, E>;

Loading
Oops, something went wrong.