Module

Test.PMock

Package
purescript-pmock
Repository
pujoheadsoft/purescript-pmock

#MockBuilder Source

class MockBuilder params fun verifyParams | params -> fun, params -> verifyParams where

Members

Instances

#VerifyCount Source

class VerifyCount countType params a  where

Members

Instances

#Verify Source

class Verify params input  where

Members

Instances

#Verifier Source

newtype Verifier params

#showCalledParams Source

showCalledParams :: forall fun params. Show params => Mock fun params -> String

#Mock Source

data Mock fun params

#fun Source

fun :: forall fun v. Mock fun v -> fun

#mockFun Source

mockFun :: forall params fun verifyParams. MockBuilder params fun verifyParams => params -> fun

#VerifyMatchType Source

data VerifyMatchType a

Constructors

Instances

Re-exports from Test.PMock.Cons

#Cons Source

data Cons a b

Constructors

Instances

#(#>) Source

Operator alias for Test.PMock.Cons.Cons (right-associative / precedence 8)

#type (#>) Source

Operator alias for Test.PMock.Cons.Cons (right-associative / precedence 8)

Re-exports from Test.PMock.Param

#Param Source

data Param v

Constructors

Instances

#and Source

and :: forall a b r. LogicalMatcher a b r => a -> b -> r

#cons Source

cons :: forall a b r. ConsGen a b r => a -> b -> r

#not Source

not :: forall a r. NotMatcher a r => a -> r

#or Source

or :: forall a b r. LogicalMatcher a b r => a -> b -> r

#value Source

value :: forall v. Param v -> v

#param Source

param :: forall a. a -> Param a

#matcher Source

matcher :: forall a. (a -> Boolean) -> String -> Param a

#any Source

any :: forall a. Param a

#(:>) Source

Operator alias for Test.PMock.Param.cons (right-associative / precedence 8)