Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion codeflash/errors/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
from codeflash.code_utils.compat import LF
from codeflash.either import CodeflashError

_TEST_CONFIDENCE_ERROR = CodeflashError(
"TEST_CONFIDENCE_THRESHOLD_NOT_MET_ERROR", "The threshold for test confidence was not met."
)

_BEHAVIORAL_TEST_FAILURE_ERROR = CodeflashError(
"BEHAVIORAL_TEST_FAILURE_ERROR", "Failed to establish a baseline for the original code - bevhavioral tests failed."
)
Expand Down Expand Up @@ -74,7 +78,7 @@ def coverage_threshold_not_met_error() -> CodeflashError:


def test_confidence_threshold_not_met_error() -> CodeflashError:
return CodeflashError("TEST_CONFIDENCE_THRESHOLD_NOT_MET_ERROR", "The threshold for test confidence was not met.")
return _TEST_CONFIDENCE_ERROR


def behavioral_test_failure_error() -> CodeflashError:
Expand Down
Loading