Skip to content

Commit c3e1c06

Browse files
committed
add coverage expectation due to coverage bugfix
1 parent a79ce1d commit c3e1c06

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/scripts/end_to_end_test_init_optimization.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import pathlib
33

4-
from end_to_end_test_utilities import TestConfig, run_codeflash_command, run_with_retries
4+
from end_to_end_test_utilities import CoverageExpectation, TestConfig, run_codeflash_command, run_with_retries
55

66

77
def run_test(expected_improvement_pct: int) -> bool:
@@ -10,6 +10,11 @@ def run_test(expected_improvement_pct: int) -> bool:
1010
function_name="CharacterRemover.remove_control_characters",
1111
test_framework="pytest",
1212
min_improvement_x=1.0,
13+
coverage_expectations=[
14+
CoverageExpectation(
15+
function_name="CharacterRemover.remove_control_characters", expected_coverage=100.0, expected_lines=[14]
16+
)
17+
],
1318
)
1419
cwd = (pathlib.Path(__file__).parent.parent.parent / "code_to_optimize").resolve()
1520
return run_codeflash_command(cwd, config, expected_improvement_pct)

0 commit comments

Comments
 (0)