Skip to content

Commit

Permalink
drop unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddOnTop committed May 1, 2024
1 parent b2346b3 commit eef9bbd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 226 deletions.
214 changes: 0 additions & 214 deletions benches/jq.rs

This file was deleted.

13 changes: 1 addition & 12 deletions src/mustache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ impl Mustache {
.collect()
}

pub fn get_segments(&self) -> Vec<&Segment> {
self.segments.iter().collect()
}

pub fn expression_segments(&self) -> Vec<&Vec<String>> {
self.segments
.iter()
Expand Down Expand Up @@ -237,14 +233,7 @@ fn parse_jq(input: &str) -> IResult<&str, Option<jaq_interpret::Filter>> {
)));

Check warning on line 233 in src/mustache.rs

View check run for this annotation

Codecov / codecov/patch

src/mustache.rs#L230-L233

Added lines #L230 - L233 were not covered by tests
}
let filter = defs.compile(filter.unwrap());
Ok((
input,
if defs.errs.is_empty() {
Some(filter)
} else {
None
},
))
Ok((input, Some(filter)))
}

#[cfg(test)]
Expand Down

1 comment on commit eef9bbd

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running 30s test @ http://localhost:8000/graphql

4 threads and 100 connections

Thread Stats Avg Stdev Max +/- Stdev
Latency 7.75ms 3.62ms 133.02ms 73.33%
Req/Sec 3.27k 270.75 3.83k 86.58%

391042 requests in 30.01s, 1.96GB read

Requests/sec: 13031.93

Transfer/sec: 66.89MB

Please sign in to comment.