Îõ³h*/WÔ      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRS0.2.0.0 Safe-InferredŒTUVWXYZ[ Safe-Inferred» Safe-Inferred1ÚÛô88 Safe-Inferred-+   Safe-Inferred -1ÂÃÄÅÆÈÍÚÛsmockcat9Make a parameter to which any value is expected to apply.mockcatCreate a conditional parameter.àWhen applying a mock function, if the argument does not satisfy this condition, an error occurs.ÃIn this case, the specified label is included in the error message.mockcatCreate a conditional parameter.ÝIn applied a mock function, if the argument does not satisfy this condition, an error occurs.Unlike Ö, it does not require a label, but the error message is displayed as [some condition].mockcat(Create a conditional parameter based on Q Exp. áIn applying a mock function, if the argument does not satisfy this condition, an error is raised.=The conditional expression is displayed in the error message.     8 Safe-InferredÂÃÄÅÆÈÚÛ¿ ! ! Safe-Inferred 'ÂÃÄÅÆÈÚÛ ï +mockcat3Verify functions are applied in the expected order. öimport Test.Hspec import Test.MockCat import Prelude hiding (any) ... it "verify order of apply" do m <- createMock $ any |> True |> () print $ stubFn m "a" True print $ stubFn m "b" True m `shouldApplyInOrder` ["a" |> True, "b" |> True] ,mockcat8Verify that functions are applied in the expected order.Unlike +-, not all applications need to match exactly.8As long as the order matches, the verification succeeds.-mockcatÆVerify the number of times a function has been applied to an argument. Õimport Test.Hspec import Test.MockCat ... it "verify to applied times." do m <- createMock $ "value" |> True print $ stubFn m "value" print $ stubFn m "value" m `shouldApplyTimes` (2 :: Int) `to` "value" \mockcat"Class for verifying mock function..mockcatÆVerifies that the function has been applied to the expected arguments.]mockcat9Class for creating a mock corresponding to the parameter./mockcatØCreate a mock. From this mock, you can generate stub functions and verify the functions. ú import Test.Hspec import Test.MockCat ... it "stub & verify" do -- create a mock m <- createMock $ "value" |> True -- stub function let f = stubFn m -- assert f "value" `shouldBe` True -- verify m `shouldApplyTo` "value" ÊIf you do not need verification and only need stub functions, you can use mockFun.0mockcatéCreate a named mock. If the test fails, this name is used. This may be useful if you have multiple mocks. — import Test.Hspec import Test.MockCat ... it "named mock" do m <- createNamedMock "mock" $ "value" |> True stubFn m "value" `shouldBe` True 1mockcat(Extract the stub function from the mock.2mockcatCreate a stub function. ‘ import Test.Hspec import Test.MockCat ... it "stub function" do f <- createStubFn $ "value" |> True f "value" `shouldBe` True 3mockcatCreate a named stub function./0231.-+,56784  /0231.-+,56784  Safe-Inferred; 4 /0231.-+,5678Þ     !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefç&mockcat-0.2.0.0-KhFjFLZppbXJCFyzINzwweTest.MockCat.AssociationListTest.MockCat.ConsTest.MockCat.THTest.MockCat.ParamTest.MockCat.ParamDividerTest.MockCat.Mockmockcat Paths_mockcat Test.MockCatAssociationListemptyinsertlookupmember!?update:>$fEq:>$fShow:>showExp|>Paramvalueparamanyexpectexpect_ expectByExpr $fEqParam $fShowParam$fShowParamParam$fShowParamParam0 $fConsGenab:>$fConsGenaParam:>$fConsGenParamb:>$fConsGenParamParam:>$fConsGenParam:>:>$fConsGena:>:> ParamDividerargsreturn returnValue$fParamDivider:>ParamParam$fParamDivider:>:>Param$fParamDivider:>:>Param0$fParamDivider:>:>Param1$fParamDivider:>:>Param2$fParamDivider:>:>Param3$fParamDivider:>:>Param4$fParamDivider:>:>Param5$fParamDivider:>:>Param6shouldApplyInOrdershouldApplyInPartialOrdershouldApplyTimes shouldApplyTo createMockcreateNamedMockstubFn createStubFncreateNamedStubFnto shouldApplyTimesGreaterThanEqualshouldApplyTimesLessThanEqualshouldApplyTimesGreaterThanshouldApplyTimesLessThan$fShowCountVerifyMethod$fVerifyOrderaa$fVerifyOrderParama$fVerifyCountIntaa $fVerifyCountCountVerifyMethodaa$fVerifyCountIntParama$$fVerifyCountCountVerifyMethodParama $fVerifyaa$fVerifyParama$fMockBuilderListFUNParam$fMockBuilderListFUN:>$fMockBuilderListFUN:>0$fMockBuilderListFUN:>1$fMockBuilderListFUN:>2$fMockBuilderListFUN:>3$fMockBuilderListFUN:>4$fMockBuilderListFUN:>5$fMockBuilderListFUN:>6$fMockBuilder:>FUNParam$fMockBuilder:>FUN:>$fMockBuilder:>FUN:>0$fMockBuilder:>FUN:>1$fMockBuilder:>FUN:>2$fMockBuilder:>FUN:>3$fMockBuilder:>FUN:>4$fMockBuilder:>FUN:>5$fMockBuilder:>FUN:>6version getBinDir getLibDir getDynLibDir getDataDir getLibexecDirgetDataFileName getSysconfDirVerify MockBuilder