Module

Test.PMock.Internal.Expectation

Package
purescript-pmock
Repository
pujoheadsoft/purescript-pmock

#Expectations Source

newtype Expectations params a

Instances

#Verification Source

newtype Verification params

Instances

#TimesSpec Source

newtype TimesSpec

Instances

#With Source

class With specification input result | specification input -> result where

Members

  • with :: specification -> input -> result

Instances

#greaterThan Source

#called Source

called :: forall params. TimesSpec -> Expectations params Unit

#calledWith Source

calledWith :: forall input params. ToDirectExpected input params => MatchParams params => input -> Verification params

#calledInOrder Source

calledInOrder :: forall input params. ToDirectExpected input params => MatchParams params => Array input -> Expectations params Unit

#calledInPartialOrder Source

calledInPartialOrder :: forall input params. ToDirectExpected input params => MatchParams params => Array input -> Expectations params Unit

#calledInSequence Source

calledInSequence :: forall input params. ToDirectExpected input params => MatchParams params => Array input -> Expectations params Unit

#anything Source

anything :: forall params. Verification params

#inOrderWith Source

inOrderWith :: forall input params. ToDirectExpected input params => MatchParams params => Array input -> Verification params

#inPartialOrderWith Source

inPartialOrderWith :: forall input params. ToDirectExpected input params => MatchParams params => Array input -> Verification params

#verifyVerification Source

verifyVerification :: forall fun params m. MonadThrow Error m => Mock fun params -> Verification params -> m Unit

#verifyExpectations Source

verifyExpectations :: forall fun params m. MonadThrow Error m => Mock fun params -> Expectations params Unit -> m Unit