Skip to content

Commit

Permalink
fix(filters)!: Move Filters from data
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Apr 22, 2024
1 parent 94cb553 commit fe2fb1e
Show file tree
Hide file tree
Showing 9 changed files with 564 additions and 561 deletions.
2 changes: 1 addition & 1 deletion crates/snapbox/src/assert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use anstream::stderr;
#[cfg(not(feature = "color"))]
use std::io::stderr;

use crate::data::{Filter as _, FilterNewlines, FilterPaths, FilterRedactions};
use crate::filters::{Filter as _, FilterNewlines, FilterPaths, FilterRedactions};
use crate::Action;

/// Snapshot assertion against a file's contents
Expand Down
9 changes: 2 additions & 7 deletions crates/snapbox/src/data/mod.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
mod format;
mod normalize;
mod runtime;
mod source;
#[cfg(test)]
mod tests;

pub use format::DataFormat;
pub use normalize::Filter;
pub use normalize::FilterNewlines;
pub use normalize::FilterPaths;
pub use normalize::FilterRedactions;
pub use source::DataSource;
pub use source::Inline;
pub use source::Position;
Expand Down Expand Up @@ -97,8 +92,8 @@ macro_rules! str {
/// This provides conveniences for tracking the intended format (binary vs text).
#[derive(Clone, Debug)]
pub struct Data {
inner: DataInner,
source: Option<DataSource>,
pub(crate) inner: DataInner,
pub(crate) source: Option<DataSource>,
}

#[derive(Clone, Debug)]
Expand Down
210 changes: 0 additions & 210 deletions crates/snapbox/src/data/normalize.rs

This file was deleted.

Loading

0 comments on commit fe2fb1e

Please sign in to comment.