cpp-linter
cpp-linter-hooks
BlogDocsChangelog

fix: simplify tool installation and invocation

#113Merged
Comparing
fix/repeat-install
(
f018c1f
) with
main
(
4346890
)
CodSpeed Performance Gauge
×2.3
Improvements
34
Untouched
26
Skipped
13

Benchmarks

Skipped (13)

test_ensure_installed[clang-format-None]
tests/test_util.py
Skipped
1.3 ms*
test_ensure_installed[clang-format-20]
tests/test_util.py
Skipped
1.4 ms*
test_ensure_installed[clang-tidy-20]
tests/test_util.py
Skipped
1.2 ms*
test_ensure_installed[clang-tidy-None]
tests/test_util.py
Skipped
1.3 ms*
test_ensure_installed_no_runtime_version
tests/test_util.py
Skipped
852.9 µs*
test_ensure_installed_tool_not_found
tests/test_util.py
Skipped
1 ms*
test_get_runtime_version_exception
tests/test_util.py
Skipped
517.5 µs*
test_get_runtime_version_clang_tidy_single_line
tests/test_util.py
Skipped
508.3 µs*
test_get_runtime_version_clang_tidy
tests/test_util.py
Skipped
513.3 µs*
test_ensure_installed_version_mismatch
tests/test_util.py
Skipped
1.5 ms*
test_is_installed_not_found
tests/test_util.py
Skipped
540.5 µs*
test_get_runtime_version_clang_format
tests/test_util.py
Skipped
512.2 µs*
test_is_installed_with_shutil_which
tests/test_util.py
Skipped
602.7 µs*

Improved

test_resolve_install_tool_version_mismatch
tests/test_util.py
CodSpeed Performance Gauge
×2.3
2,103.2 µs910.5 µs
test_install_tool_failure
tests/test_util.py
CodSpeed Performance Gauge
+69%
1,391.5 µs821 µs
test_run_clang_tidy_invalid[args4-1]
tests/test_clang_tidy.py
CodSpeed Performance Gauge
+35%
856.8 µs635.7 µs
test_resolve_install_tool_already_installed_correct_version
tests/test_util.py
CodSpeed Performance Gauge
+34%
915.1 µs685.3 µs
test_run_clang_tidy_valid[args4-1]
tests/test_clang_tidy.py
CodSpeed Performance Gauge
+33%
915.6 µs688.7 µs
test_run_clang_format_invalid[args1-1]
tests/test_clang_format.py
CodSpeed Performance Gauge
+31%
985.4 µs752.3 µs
test_run_clang_format_invalid[args2-1]
tests/test_clang_format.py
CodSpeed Performance Gauge
+30%
978.3 µs750.7 µs
test_run_clang_format_valid[args2-expected_retval2]
tests/test_clang_format.py
CodSpeed Performance Gauge
+26%
1,115.3 µs884.8 µs
test_run_clang_format_valid[args1-expected_retval1]
tests/test_clang_format.py
CodSpeed Performance Gauge
+26%
1,120.5 µs889.9 µs
test_run_clang_tidy_invalid[args0-1]
tests/test_clang_tidy.py
CodSpeed Performance Gauge
+22%
738.6 µs606.8 µs
test_run_clang_tidy_invalid[args2-1]
tests/test_clang_tidy.py
CodSpeed Performance Gauge
+21%
761.1 µs627.7 µs
test_run_clang_tidy_invalid[args5-1]
tests/test_clang_tidy.py
CodSpeed Performance Gauge
+21%
758.1 µs626.5 µs
test_run_clang_tidy_invalid[args6-1]
tests/test_clang_tidy.py
CodSpeed Performance Gauge
+21%
757.8 µs628.2 µs
test_run_clang_tidy_invalid[args1-1]
tests/test_clang_tidy.py
CodSpeed Performance Gauge
+20%
762.9 µs633.2 µs
test_run_clang_tidy_invalid[args3-1]
tests/test_clang_tidy.py
CodSpeed Performance Gauge
+20%
761 µs632.9 µs
test_run_clang_tidy_valid[args0-1]
tests/test_clang_tidy.py
CodSpeed Performance Gauge
+20%
797.9 µs666.8 µs
test_run_clang_format_invalid[args0-1]
tests/test_clang_format.py
CodSpeed Performance Gauge
+19%
838.7 µs703.3 µs
test_run_clang_tidy_valid[args2-1]
tests/test_clang_tidy.py
CodSpeed Performance Gauge
+19%
816.9 µs685.5 µs
test_run_clang_tidy_valid[args6-1]
tests/test_clang_tidy.py
CodSpeed Performance Gauge
+19%
816.3 µs685.2 µs
test_run_clang_tidy_valid[args5-1]
tests/test_clang_tidy.py
CodSpeed Performance Gauge
+19%
815.2 µs684.4 µs
test_run_clang_tidy_valid[args1-1]
tests/test_clang_tidy.py
CodSpeed Performance Gauge
+19%
816.7 µs686.5 µs
test_run_clang_format_dry_run[args0-1]
tests/test_clang_format.py
CodSpeed Performance Gauge
+19%
833.7 µs701 µs
test_run_clang_tidy_valid[args3-1]
tests/test_clang_tidy.py
CodSpeed Performance Gauge
+18%
818.9 µs691.6 µs
test_run_clang_format_invalid[args6-1]
tests/test_clang_format.py
CodSpeed Performance Gauge
+18%
862.1 µs730.1 µs
test_run_clang_format_invalid[args4-1]
tests/test_clang_format.py
CodSpeed Performance Gauge
+18%
889.6 µs755.1 µs
test_run_clang_format_invalid[args3-1]
tests/test_clang_format.py
CodSpeed Performance Gauge
+18%
893 µs759 µs
test_run_clang_format_invalid[args5-1]
tests/test_clang_format.py
CodSpeed Performance Gauge
+18%
885.5 µs753 µs
test_run_clang_format_verbose_error
tests/test_clang_format.py
CodSpeed Performance Gauge
+17%
947.9 µs811.5 µs
test_run_clang_format_valid[args4-expected_retval4]
tests/test_clang_format.py
CodSpeed Performance Gauge
+16%
1,026.3 µs888.4 µs
test_run_clang_format_valid[args6-expected_retval6]
tests/test_clang_format.py
CodSpeed Performance Gauge
+15%
1,001.9 µs869.3 µs
test_run_clang_format_valid[args5-expected_retval5]
tests/test_clang_format.py
CodSpeed Performance Gauge
+15%
1,023.9 µs891.4 µs
test_run_clang_format_valid[args3-expected_retval3]
tests/test_clang_format.py
CodSpeed Performance Gauge
+15%
1,025 µs893.3 µs
test_run_clang_format_verbose
tests/test_clang_format.py
CodSpeed Performance Gauge
+14%
1,013.1 µs886.3 µs
test_run_clang_format_valid[args0-expected_retval0]
tests/test_clang_format.py
CodSpeed Performance Gauge
+13%
1,014.2 µs896.5 µs

Passed

test_resolve_install_no_version_specified
tests/test_util.py
CodSpeed Performance Gauge
+3%
930.9 µs900.7 µs
test_resolve_install_tool_not_installed
tests/test_util.py
CodSpeed Performance Gauge
+3%
936.9 µs909.3 µs
test_resolve_install_invalid_version
tests/test_util.py
CodSpeed Performance Gauge
+3%
1.1 ms1 ms
test_resolve_install_with_none_default_version
tests/test_util.py
CodSpeed Performance Gauge
+3%
1,012.7 µs986.1 µs
test_get_version_from_dependency_success
tests/test_util.py
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
test_resolve_version_clang_format[20-20.1.8]
tests/test_util.py
CodSpeed Performance Gauge
0%
137.2 µs136.8 µs
test_get_version_from_dependency_malformed_toml
tests/test_util.py
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_resolve_version_clang_format[18-18.1.8]
tests/test_util.py
CodSpeed Performance Gauge
0%
143.7 µs143.8 µs
test_resolve_version_clang_format[20.1-20.1.8]
tests/test_util.py
CodSpeed Performance Gauge
0%
136.7 µs136.9 µs
test_get_version_from_dependency_missing_dependency
tests/test_util.py
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_resolve_version_clang_format[18.1-18.1.8]
tests/test_util.py
CodSpeed Performance Gauge
0%
144.6 µs145 µs
test_resolve_version_clang_tidy[99-None]
tests/test_util.py
CodSpeed Performance Gauge
0%
231.2 µs232 µs
test_resolve_version_clang_tidy[18-18.1.8]
tests/test_util.py
CodSpeed Performance Gauge
0%
107.7 µs108.1 µs
test_resolve_version_clang_tidy[19-19.1.0.1]
tests/test_util.py
CodSpeed Performance Gauge
0%
107.8 µs108.2 µs
test_resolve_version_clang_tidy[20-20.1.0]
tests/test_util.py
CodSpeed Performance Gauge
0%
103.9 µs104.4 µs
test_resolve_version_clang_format[None-None]
tests/test_util.py
CodSpeed Performance Gauge
0%
87 µs87.4 µs
test_resolve_version_clang_tidy[None-None]
tests/test_util.py
CodSpeed Performance Gauge
-1%
86.1 µs86.6 µs
test_get_version_from_dependency_missing_file
tests/test_util.py
CodSpeed Performance Gauge
-1%
957.5 µs962.8 µs
test_default_versions
tests/test_util.py
CodSpeed Performance Gauge
-1%
84.3 µs84.8 µs
test_version_lists_not_empty
tests/test_util.py
CodSpeed Performance Gauge
-1%
111.8 µs112.5 µs
test_resolve_version_clang_format[invalid-None]
tests/test_util.py
CodSpeed Performance Gauge
-1%
242.8 µs244.3 µs
test_install_tool_success
tests/test_util.py
CodSpeed Performance Gauge
-1%
1.1 ms1.1 ms
test_resolve_version_clang_format[20.1.7-20.1.7]
tests/test_util.py
CodSpeed Performance Gauge
-1%
93.2 µs94 µs
test_install_tool_success_but_not_found
tests/test_util.py
CodSpeed Performance Gauge
-1%
1.1 ms1.1 ms
test_resolve_version_clang_format[20.99-None]
tests/test_util.py
CodSpeed Performance Gauge
-1%
243.9 µs246.9 µs
test_resolve_version_clang_format[99-None]
tests/test_util.py
CodSpeed Performance Gauge
-8%
246.8 µs268.8 µs

Commits

Click on a commit to change the comparison range
Base
main
4346890
×2.3
fix: update tests
25ccc0b
2 months ago
by shenxianpeng
-0.24%
fix: update tests
ae3053a
2 months ago
by shenxianpeng
-0.13%
Update tests/test_util.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
bc250ab
2 months ago
by shenxianpeng
-0.09%
fix: update tests
6e12622
2 months ago
by shenxianpeng
+0.25%
fix: update test
64d7080
2 months ago
by shenxianpeng
-0.16%
fix: update test
77485ce
2 months ago
by shenxianpeng
0%
docs: update version to v1.1.2
f018c1f
2 months ago
by shenxianpeng
© 2025 CodSpeed Technology
Home Terms Privacy Docs