-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pact step signatures #565
Pact step signatures #565
Conversation
Remove `CheckableType`s which are always `CheckDefun`.
This allows us to successfully check our first steps.
This is perhaps not the best message -- "entering step with arguments ...", which could be confusing, since the arguments come from the `defpact`, not the step. Perhaps we should add a new scope type.
`verifyFunctionInvariants` and `verifyFunctionProperty`.
This previously caused checking of `defpact`s to fail due to the wrong `CheckableType`.
This fixes the remaining two tests that were failing.
This was not possible before because it relies on b6659de.
, invariantChecks :: HM.HashMap Text (TableMap [CheckResult]) | ||
, moduleWarnings :: VerificationWarnings | ||
} deriving (Eq, Show) | ||
|
||
data CheckEnv = CheckEnv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
-- use this structure for invariant checks, which don't check any props. We | ||
-- also use it for checking pact steps which are a different check type and | ||
-- borrow the name of their enclosing pact. | ||
data FunData = FunData |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
handlePositiveTestResult :: Maybe TestFailure -> IO () | ||
handlePositiveTestResult = \case | ||
handlePositiveTestResult :: HasCallStack => Maybe TestFailure -> IO () | ||
handlePositiveTestResult = withFrozenCallStack $ \case |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is cool! I had no idea about this function.
* origin/master: Change 'executed' output to 'Maybe Bool' to indicate private exec (#560) Write a few older tests in terms of new testing system. Roll back (not needed) analysis write validation. Rewrite expected failure properties. Small alignment tweak. Analysis write validation.
I added another case to |
No description provided.