mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-09-11 18:05:56 +03:00
remote: fix arbitrary repair mode of AddToStore AddTextToStore to DontRepair
This commit is contained in:
parent
a39ee890d0
commit
9b66373471
@ -5,6 +5,7 @@ module System.Nix.Store.Remote.Arbitrary where
|
||||
|
||||
import Data.Some (Some(Some))
|
||||
import System.Nix.Arbitrary ()
|
||||
import System.Nix.Store.Types (RepairMode(..))
|
||||
import System.Nix.Store.Remote.Types
|
||||
|
||||
import Test.QuickCheck (Arbitrary(..), oneof, suchThat)
|
||||
@ -95,8 +96,8 @@ deriving via GenericArbitrary WorkerOp
|
||||
|
||||
instance Arbitrary (Some StoreRequest) where
|
||||
arbitrary = oneof
|
||||
[ Some <$> (AddToStore <$> arbitrary <*> arbitrary <*> arbitrary <*> arbitrary)
|
||||
, Some <$> (AddTextToStore <$> arbitrary <*> arbitrary <*> arbitrary)
|
||||
[ Some <$> (AddToStore <$> arbitrary <*> arbitrary <*> arbitrary <*> pure RepairMode_DontRepair)
|
||||
, Some <$> (AddTextToStore <$> arbitrary <*> arbitrary <*> pure RepairMode_DontRepair)
|
||||
, Some <$> (AddSignatures <$> arbitrary <*> arbitrary)
|
||||
, Some . AddIndirectRoot <$> arbitrary
|
||||
, Some . AddTempRoot <$> arbitrary
|
||||
|
Loading…
Reference in New Issue
Block a user