44from cpp_linter_hooks .clang_format import run_clang_format
55
66
7+ @pytest .mark .benchmark
78@pytest .mark .parametrize (
89 ("args" , "expected_retval" ),
910 (
@@ -24,6 +25,7 @@ def test_run_clang_format_valid(args, expected_retval, tmp_path):
2425 assert test_file .read_text () == Path ("testing/good.c" ).read_text ()
2526
2627
28+ @pytest .mark .benchmark
2729@pytest .mark .parametrize (
2830 ("args" , "expected_retval" ),
2931 (
@@ -48,6 +50,7 @@ def test_run_clang_format_invalid(args, expected_retval, tmp_path):
4850 assert ret == expected_retval
4951
5052
53+ @pytest .mark .benchmark
5154@pytest .mark .parametrize (
5255 ("args" , "expected_retval" ),
5356 (
@@ -66,6 +69,7 @@ def test_run_clang_format_dry_run(args, expected_retval, tmp_path):
6669 assert ret == - 1 # Dry run should not fail
6770
6871
72+ @pytest .mark .benchmark
6973def test_run_clang_format_verbose (tmp_path ):
7074 """Test that verbose option works and provides detailed output."""
7175 # copy test file to tmp_path to prevent modifying repo data
@@ -82,6 +86,7 @@ def test_run_clang_format_verbose(tmp_path):
8286 assert test_file .read_text () == Path ("testing/good.c" ).read_text ()
8387
8488
89+ @pytest .mark .benchmark
8590def test_run_clang_format_verbose_error (tmp_path ):
8691 """Test that verbose option provides useful error information."""
8792 test_file = tmp_path / "main.c"
0 commit comments