packages feed

mockcat-0.6.0.0: mockcat.cabal

cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.37.0.
--
-- see: https://github.com/sol/hpack

name:           mockcat
version:        0.6.0.0
synopsis:       Mock library for test in Haskell.
description:    mockcat is a small mocking / stubbing DSL for Haskell tests.
                .
                Features:
                .
                * Describe expectations with left-to-right pipelines: `arg |> ... |> result`
                * Generate typeclass mocks via Template Haskell (`makeMock`, `makePartialMock`)
                * Create standalone function stubs (`createStubFn`, constant mocks)
                * Flexible return behaviour: vary by argument or occurrence (including identical args later)
                * Optional per-call variation for `IO a` results
                * Concurrency-safe counting and explicit lazy semantics (unevaluated results are not recorded)
                * Simple verification helpers (apply count predicates, ordering checks)
                * Partial adoption: mock only selected methods; no hidden global state
                .
                See README for full examples: <https://github.com/pujoheadsoft/mockcat#readme>
category:       Testing
homepage:       https://github.com/pujoheadsoft/mockcat#readme
bug-reports:    https://github.com/pujoheadsoft/mockcat/issues
author:         funnycat <pujoheadsoft@gmail.com>
maintainer:     funnycat <pujoheadsoft@gmail.com>
copyright:      2024 funnycat
license:        MIT
license-file:   LICENSE
build-type:     Simple
tested-with:
    GHC == 9.2.8
  , GHC == 9.4.8
  , GHC == 9.6.3
  , GHC == 9.8.2
  , GHC == 9.10.1
extra-source-files:
    README.md
    README-ja.md
    CHANGELOG.md

source-repository head
  type: git
  location: https://github.com/pujoheadsoft/mockcat

library
  exposed-modules:
      Test.MockCat
      Test.MockCat.AssociationList
      Test.MockCat.Cons
      Test.MockCat.Mock
      Test.MockCat.MockT
      Test.MockCat.Param
      Test.MockCat.TH
  other-modules:
      Paths_mockcat
  hs-source-dirs:
      src
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -fprint-potential-instances -Wredundant-constraints
  build-depends:
      base >=4.7 && <5
    , mtl >=2.3.1 && <2.4
    , template-haskell >=2.18 && <2.24
    , text >=2.0 && <2.2
    , transformers >=0.5.6 && <0.7
    , unliftio >=0.2.25.0 && <0.2.26
    , unliftio-core >=0.2.1.0 && <0.2.2
  default-language: Haskell2010

test-suite mockcat-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Property.AdditionalProps
      Property.ConcurrentCountProp
      Property.Generators
      Property.LazyEvalProp
      Property.OrderProps
      Property.ParamSpecMergeProp
      Property.ParamSpecNormalizeProp
      Property.ParamSpecRangeMergeRandomProp
      Property.ReinforcementProps
      Property.ScriptProps
      Support.ParamSpec
      Support.ParamSpecNormalize
      Test.MockCat.AssociationListSpec
      Test.MockCat.ConcurrencySpec
      Test.MockCat.ConsSpec
      Test.MockCat.Definition
      Test.MockCat.ExampleSpec
      Test.MockCat.Impl
      Test.MockCat.MockSpec
      Test.MockCat.ParamSpec
      Test.MockCat.PartialMockSpec
      Test.MockCat.PartialMockTHSpec
      Test.MockCat.TypeClassSpec
      Test.MockCat.TypeClassTHSpec
      Paths_mockcat
  hs-source-dirs:
      test
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -fprint-potential-instances -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      QuickCheck >=2.14 && <2.17
    , async >=2.2.4 && <2.3
    , base >=4.7 && <5
    , hashable >=1.4 && <1.6
    , hspec >=2.11 && <2.13
    , mockcat
    , mtl >=2.3.1 && <2.4
    , template-haskell >=2.18 && <2.24
    , text >=2.0 && <2.2
    , transformers >=0.5.6 && <0.7
    , unliftio >=0.2.25.0 && <0.2.26
    , unliftio-core >=0.2.1.0 && <0.2.2
    , unordered-containers >=0.2.19 && <0.3
  default-language: Haskell2010