Add CI quality gate

This commit is contained in:
Mikhail Kilin
2026-05-17 18:55:36 +03:00
parent 2d4c1906d5
commit 51e9cf5c10
13 changed files with 50 additions and 60 deletions

View File

@@ -43,9 +43,7 @@ fn benchmark_format_simple_text(c: &mut Criterion) {
let entities = vec![];
c.bench_function("format_simple_text", |b| {
b.iter(|| {
format_text_with_entities(black_box(&text), black_box(&entities), Color::White)
});
b.iter(|| format_text_with_entities(black_box(&text), black_box(&entities), Color::White));
});
}
@@ -53,9 +51,7 @@ fn benchmark_format_markdown_text(c: &mut Criterion) {
let (text, entities) = create_text_with_entities();
c.bench_function("format_markdown_text", |b| {
b.iter(|| {
format_text_with_entities(black_box(&text), black_box(&entities), Color::White)
});
b.iter(|| format_text_with_entities(black_box(&text), black_box(&entities), Color::White));
});
}
@@ -79,9 +75,7 @@ fn benchmark_format_long_text(c: &mut Criterion) {
}
c.bench_function("format_long_text_with_100_entities", |b| {
b.iter(|| {
format_text_with_entities(black_box(&text), black_box(&entities), Color::White)
});
b.iter(|| format_text_with_entities(black_box(&text), black_box(&entities), Color::White));
});
}