warrah 0.1.1

Warrah: A command-line utility and Rust library that sloppily removes code comments from a text file, supporting 60+ programming languages.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use warrah::process::file_path::remove_comments;
use warrah::test_utils::fixture::fixture_path;

fn bench_integration_call_function(c: &mut Criterion) {
    let input_path = fixture_path("javascript/benches/comment_remover.js");

    c.bench_function("integration_call_function", |b| {
        b.iter(|| {
            let output = remove_comments(input_path.clone(), 10 * 1024, true).unwrap();
            black_box(output)
        })
    });
}

criterion_group!(benches, bench_integration_call_function);
criterion_main!(benches);