Module

Test.PMock

Package
purescript-pmock
Repository
pujoheadsoft/purescript-pmock

#Mock Source

data Mock fun params

#VerifyMatchType Source

data VerifyMatchType a

Constructors

Instances

#MockBuilder Source

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

Members

Instances

#Verify Source

class Verify params input  where

Members

Instances

#VerifyCount Source

class VerifyCount countType params a  where

Members

Instances

#VerifyOrder Source

class VerifyOrder params input  where

Members

Instances

#fun Source

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

#mock Source

mock :: forall params fun verifyParams. MockBuilder params fun verifyParams => params -> Mock fun verifyParams

#namedMock Source

namedMock :: forall params fun verifyParams. MockBuilder params fun verifyParams => MockName -> params -> Mock fun verifyParams

#mockFun Source

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

#namedMockFun Source

namedMockFun :: forall params fun verifyParams. MockBuilder params fun verifyParams => String -> params -> fun

#showCalledParams Source

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

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)