Skip to content

Commit

Permalink
Move StatementCategoryFilter to separate module (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksew1 authored Dec 5, 2024
1 parent 237aa00 commit 2b9fee1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/cairo-coverage/src/input/data.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::data_loader::LoadedData;
use crate::input::statement_category_filter::StatementCategoryFilter;
use crate::input::filter::statement_category_filter::StatementCategoryFilter;
use crate::input::{create_sierra_to_cairo_map, SierraToCairoMap, UniqueExecutedSierraIds};
use crate::merge::MergeOwned;
use anyhow::{Context, Result};
Expand Down
1 change: 1 addition & 0 deletions crates/cairo-coverage/src/input/filter/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod statement_category_filter;
4 changes: 2 additions & 2 deletions crates/cairo-coverage/src/input/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
mod data;
mod filter;
mod sierra_to_cairo_map;
mod statement_category_filter;
mod unique_executed_sierra_ids;

pub use data::InputData;
pub use filter::statement_category_filter::StatementCategoryFilter;
pub use sierra_to_cairo_map::{create_sierra_to_cairo_map, SierraToCairoMap};
pub use statement_category_filter::StatementCategoryFilter;
pub use unique_executed_sierra_ids::UniqueExecutedSierraIds;
4 changes: 3 additions & 1 deletion crates/cairo-coverage/src/input/sierra_to_cairo_map.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use crate::input::statement_category_filter::{StatementCategoryFilter, VIRTUAL_FILE_REGEX};
use crate::input::filter::statement_category_filter::{
StatementCategoryFilter, VIRTUAL_FILE_REGEX,
};
use anyhow::{Context, Result};
use cairo_annotations::annotations::coverage::{
CodeLocation, CoverageAnnotationsV1, LineNumber, SourceCodeSpan, SourceFileFullPath,
Expand Down

0 comments on commit 2b9fee1

Please sign in to comment.