Skip to content

Commit b290b29

Browse files
committed
test(chain): change test case comments to docstring
1 parent c151d8f commit b290b29

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

crates/chain/tests/test_keychain_txout_index.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,16 @@ fn test_non_wildcard_derivations() {
392392
fn lookahead_to_target() {
393393
#[derive(Default)]
394394
struct TestCase {
395-
lookahead: u32, // Global lookahead value
396-
external_last_revealed: Option<u32>, // Last revealed index for external keychain
397-
internal_last_revealed: Option<u32>, // Last revealed index for internal keychain
398-
external_target: Option<u32>, // Call `lookahead_to_target(External, u32)`
399-
internal_target: Option<u32>, // Call `lookahead_to_target(Internal, u32)`
395+
/// Global lookahead value.
396+
lookahead: u32,
397+
/// Last revealed index for external keychain.
398+
external_last_revealed: Option<u32>,
399+
/// Last revealed index for internal keychain.
400+
internal_last_revealed: Option<u32>,
401+
/// Call `lookahead_to_target(External, u32)`.
402+
external_target: Option<u32>,
403+
/// Call `lookahead_to_target(Internal, u32)`.
404+
internal_target: Option<u32>,
400405
}
401406

402407
let test_cases = &[

0 commit comments

Comments
 (0)