Skip to content

Commit

Permalink
add realization interface hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pschanely committed Jul 7, 2024
1 parent da89182 commit c0a4733
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hypothesis_crosshair_provider/crosshair_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
class CrossHairPrimitiveProvider(PrimitiveProvider):
"""An implementation of PrimitiveProvider based on CrossHair."""

avoid_realization = True

def __init__(self, *_a, **_kw) -> None:
self.iteration_number = 0
self.current_exit_stack: Optional[ExitStack] = None
Expand Down Expand Up @@ -293,3 +295,6 @@ def export_value(self, value):

def post_test_case_hook(self, val):
return self.export_value(val)

def realize(self, value):
return self.export_value(value)

0 comments on commit c0a4733

Please sign in to comment.