File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ pub enum CertificateCreationError {
14
14
Codec ( String ) ,
15
15
}
16
16
17
- /// Define a way to create a [Certificate]
17
+ /// Define a way to create a [Certificate][mithril_common::entities::Certificate]
18
18
pub trait CertificateCreator {
19
- /// Create a [Certificate]
19
+ /// Create a [Certificate][mithril_common::entities::Certificate]
20
20
fn create_certificate (
21
21
working : & WorkingCertificate ,
22
22
signatures_party_ids : & [ PartyId ] ,
Original file line number Diff line number Diff line change @@ -33,17 +33,17 @@ impl Epoch {
33
33
Ok ( Epoch ( epoch_new as u64 ) )
34
34
}
35
35
36
- /// Apply the [Self::SIGNER_EPOCH_RETRIEVAL_OFFSET ] to this epoch
36
+ /// Apply the [retrieval offset][ Self::SIGNER_RETRIEVAL_OFFSET ] to this epoch
37
37
pub fn offset_to_signer_retrieval_epoch ( & self ) -> Result < Self , EpochError > {
38
38
self . offset_by ( Self :: SIGNER_RETRIEVAL_OFFSET )
39
39
}
40
40
41
- /// Apply the [Self::NEXT_SIGNER_EPOCH_RETRIEVAL_OFFSET ] to this epoch
41
+ /// Apply the [next signer retrieval offset][ Self::NEXT_SIGNER_RETRIEVAL_OFFSET ] to this epoch
42
42
pub fn offset_to_next_signer_retrieval_epoch ( & self ) -> Self {
43
43
* self + Self :: NEXT_SIGNER_RETRIEVAL_OFFSET
44
44
}
45
45
46
- /// Apply the [Self::SIGNER_EPOCH_RECORDING_OFFSET ] to this epoch
46
+ /// Apply the [recording offset][ Self::SIGNER_RECORDING_OFFSET ] to this epoch
47
47
pub fn offset_to_recording_epoch ( & self ) -> Self {
48
48
* self + Self :: SIGNER_RECORDING_OFFSET
49
49
}
Original file line number Diff line number Diff line change
1
+ //! Test utilities
2
+ //!
3
+ //! They contains:
4
+ //! * A Open Api Spec tester
5
+ //! * Some precomputed fake data
6
+ //! * A builder of [MithrilFixture] to generate signers alongside a stake distribution
7
+ //!
8
+ //! Note: Most of those tools are behind the `test_only` features.
9
+
1
10
#[ cfg( any( test, feature = "test_only" ) ) ]
2
11
pub mod apispec;
3
12
#[ cfg( any( test, feature = "test_only" ) ) ]
You can’t perform that action at this time.
0 commit comments