MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / compare_assertion_value

Function compare_assertion_value

eval/run_real_model.py:521–534  ·  view source on GitHub ↗
(actual, expected, op)

Source from the content-addressed store, hash-verified

519
520
521def compare_assertion_value(actual, expected, op):
522 if op == "eq":
523 return actual == expected
524 if op == "ne":
525 return actual != expected
526 if op == "gt":
527 return actual > expected
528 if op == "gte":
529 return actual >= expected
530 if op == "lt":
531 return actual < expected
532 if op == "lte":
533 return actual <= expected
534 return None
535
536
537def evaluate_assertions(scenario, db_path):

Callers 1

evaluate_assertionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected