MCPcopy Index your code
hub / github.com/pathwaycom/pathway / LogicChecker

Class LogicChecker

python/pathway/tests/utils.py:528–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526
527
528class LogicChecker:
529 def __init__(self, logic: Callable) -> None:
530 self.logic = logic
531
532 def __call__(self):
533 try:
534 self.logic()
535 except Exception as exception:
536 self.exception = exception
537 return False
538 return True
539
540 def provide_information_on_failure(self):
541 return self.exception
542
543
544@dataclass(frozen=True)

Callers 1

get_checkerFunction · 0.90

Calls

no outgoing calls

Tested by 1

get_checkerFunction · 0.72