Skip to content

Commit

Permalink
Use Hedgehog.Gen.enumBounded
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanCacqueray committed Jul 30, 2024
1 parent 2a09d02 commit 1c9dcc2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions code/hsec-tools/test/Spec/FormatSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,9 @@ genAffected =
genComponentIdentifier :: Gen.Gen ComponentIdentifier
genComponentIdentifier = Gen.choice $
[ Hackage <$> genText
, GHC <$> genGHCComponent
, GHC <$> Gen.enumBounded
]

genGHCComponent :: Gen.Gen GHCComponent
genGHCComponent = Gen.choice $ map pure [minBound..maxBound]

genCVSS :: Gen.Gen CVSS
genCVSS =
Gen.choice $
Expand Down

0 comments on commit 1c9dcc2

Please sign in to comment.