Skip to content

Commit

Permalink
keep export for macros
Browse files Browse the repository at this point in the history
  • Loading branch information
xMAC94x committed Jul 9, 2024
1 parent 124a667 commit 9f5bf90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/parser/macros.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[cfg(test)]
#[macro_export]
macro_rules! filter {
() => {FilterExpression::Atom(op!,FilterSign::new(""),op!())};
( $left:expr, $s:literal, $right:expr) => {
Expand All @@ -8,7 +8,7 @@ macro_rules! filter {
( $left:expr,&&, $right:expr) => {FilterExpression::And(Box::new($left),Box::new($right)) };
}

#[cfg(test)]
#[macro_export]
macro_rules! op {
( ) => {
Operand::Dynamic(Box::new(JsonPath::Empty))
Expand All @@ -24,7 +24,7 @@ macro_rules! op {
};
}

#[cfg(test)]
#[macro_export]
macro_rules! idx {
( $s:literal) => {JsonPathIndex::Single(json!($s))};
( idx $($ss:literal),+) => {{
Expand Down Expand Up @@ -55,7 +55,7 @@ macro_rules! idx {
( [;;]) => {JsonPathIndex::Slice(0,0,1)};
}

#[cfg(test)]
#[macro_export]
macro_rules! chain {
($($ss:expr),+) => {{
let ss_vec = vec![
Expand Down

0 comments on commit 9f5bf90

Please sign in to comment.