Add CI quality gate

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

No files matched your search

+3 -9
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));
});
}