@@ -57,7 +57,7 @@ final class BIP44Tests: XCTestCase {
57
57
}
58
58
private var mockTransactionChecker : MockTransactionChecker = . init( )
59
59
60
- func testDeriveNoWarn ( ) async throws {
60
+ func testDeriveWithoutThrowOnError ( ) async throws {
61
61
let rootNode = try rootNode ( )
62
62
63
63
let childNode = try await rootNode. derive ( path: " m/44'/60'/8096'/0/1 " , throwOnError: false , transactionChecker: mockTransactionChecker)
@@ -77,7 +77,7 @@ final class BIP44Tests: XCTestCase {
77
77
78
78
// MARK: - address
79
79
80
- func testAccountZeroCanBeDerivedAlways ( ) async throws {
80
+ func testZeroAccountNeverThrow ( ) async throws {
81
81
let rootNode = try rootNode ( )
82
82
83
83
let childNode = try await rootNode. derive ( path: " m/44'/60'/0'/0/255 " , throwOnError: true , transactionChecker: mockTransactionChecker)
@@ -86,7 +86,7 @@ final class BIP44Tests: XCTestCase {
86
86
XCTAssertEqual ( mockTransactionChecker. addresses. count, 0 )
87
87
}
88
88
89
- func testAccountOneWithoutTransactionsInAccountZeroWarns ( ) async throws {
89
+ func testFirstAccountWithNoPreviousTransactionHistory ( ) async throws {
90
90
do {
91
91
let rootNode = try rootNode ( )
92
92
let path = " m/44'/60'/1'/0/0 "
@@ -98,12 +98,11 @@ final class BIP44Tests: XCTestCase {
98
98
99
99
XCTFail ( " Child must not be created using warns true for the path: \( path) " )
100
100
} catch BIP44Error . warning {
101
- XCTAssertTrue ( true )
102
101
XCTAssertEqual ( mockTransactionChecker. addresses, accountZeroScannedAddresses)
103
102
}
104
103
}
105
104
106
- func testAccountOneWithTransactionsInAccountZeroNotWarns ( ) async throws {
105
+ func testFirstAccountWithPreviousTransactionHistory ( ) async throws {
107
106
do {
108
107
let rootNode = try rootNode ( )
109
108
let path = " m/44'/60'/1'/0/0 "
@@ -120,7 +119,7 @@ final class BIP44Tests: XCTestCase {
120
119
}
121
120
}
122
121
123
- func testAccountTwoWithTransactionsInAccountZeroButNotInOneWarns ( ) async throws {
122
+ func testSecondAccountWithNoPreviousTransactionHistory ( ) async throws {
124
123
do {
125
124
let rootNode = try rootNode ( )
126
125
let path = " m/44'/60'/2'/0/0 "
@@ -133,15 +132,14 @@ final class BIP44Tests: XCTestCase {
133
132
134
133
XCTFail ( " Child must not be created using warns true for the path: \( path) " )
135
134
} catch BIP44Error . warning {
136
- XCTAssertTrue ( true )
137
135
XCTAssertEqual ( mockTransactionChecker. addresses, accountZeroAndOneScannedAddresses)
138
136
XCTAssertEqual ( mockTransactionChecker. addresses. count, 21 )
139
137
}
140
138
}
141
139
142
140
// MARK: - change + addressIndex
143
141
144
- func testAccountOneAndInternalAndNotZeroAddressIndexWithTransactionsInAccountZeroNotWarns ( ) async throws {
142
+ func testNotZeroChangeAndAddressIndexWithPreviousTransactionHistory ( ) async throws {
145
143
do {
146
144
let rootNode = try rootNode ( )
147
145
let path = " m/44'/60'/1'/1/128 "
0 commit comments