File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
ouroboros-consensus/test/storage-test/Test/Ouroboros/Storage/PerasCertDB Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import Ouroboros.Consensus.Block.SupportsPeras
11
11
import Test.Ouroboros.Storage.PerasCertDB.Model
12
12
import Test.QuickCheck.StateModel
13
13
import Ouroboros.Consensus.Storage.PerasCertDB.API (PerasWeightSnapshot )
14
+ import Ouroboros.Consensus.Storage.PerasCertDB (PerasCertDbError )
14
15
15
16
tests :: TestTree
16
17
tests = undefined
@@ -22,8 +23,14 @@ instance StateModel Model where
22
23
data Action Model a where
23
24
OpenDB :: Action Model ()
24
25
CloseDB :: Action Model ()
25
- AddCert :: PerasCert Block -> Action Model ()
26
- GetWeightSnapshot :: Action Model (PerasWeightSnapshot Block )
26
+ AddCert :: PerasCert Block -> Action Model (Either PerasCertDbError () )
27
+ GetWeightSnapshot :: Action Model (Either PerasCertDbError ( PerasWeightSnapshot Block ) )
27
28
28
29
arbitraryAction _ _ = error " arbitraryAction not implemented"
29
30
initialState = error " initialState not implemented"
31
+
32
+ deriving instance Show (Action Model a )
33
+
34
+ instance HasVariables (Action Model a ) where
35
+ getAllVariables _ = mempty
36
+
You can’t perform that action at this time.
0 commit comments