@@ -1659,7 +1659,7 @@ mod tests {
1659
1659
}
1660
1660
1661
1661
#[ test]
1662
- pub fn test_sign_init_fail ( ) {
1662
+ fn test_sign_init_fail ( ) {
1663
1663
* crate :: hww:: MOCK_NEXT_REQUEST . 0 . borrow_mut ( ) = None ;
1664
1664
1665
1665
let init_req_valid = pb:: BtcSignInitRequest {
@@ -1895,7 +1895,7 @@ mod tests {
1895
1895
}
1896
1896
1897
1897
#[ test]
1898
- pub fn test_process ( ) {
1898
+ fn test_process ( ) {
1899
1899
static mut UI_COUNTER : u32 = 0 ;
1900
1900
static mut PREVTX_REQUESTED : u32 = 0 ;
1901
1901
@@ -2042,7 +2042,7 @@ mod tests {
2042
2042
2043
2043
/// Test that receiving an unexpected message from the host results in an invalid state error.
2044
2044
#[ test]
2045
- pub fn test_invalid_state ( ) {
2045
+ fn test_invalid_state ( ) {
2046
2046
let transaction =
2047
2047
alloc:: rc:: Rc :: new ( core:: cell:: RefCell :: new ( Transaction :: new ( pb:: BtcCoin :: Btc ) ) ) ;
2048
2048
mock_unlocked ( ) ;
@@ -2066,7 +2066,7 @@ mod tests {
2066
2066
2067
2067
/// Test signing if all inputs are of type P2WPKH-P2SH.
2068
2068
#[ test]
2069
- pub fn test_script_type_p2wpkh_p2sh ( ) {
2069
+ fn test_script_type_p2wpkh_p2sh ( ) {
2070
2070
let transaction =
2071
2071
alloc:: rc:: Rc :: new ( core:: cell:: RefCell :: new ( Transaction :: new ( pb:: BtcCoin :: Btc ) ) ) ;
2072
2072
for input in transaction. borrow_mut ( ) . inputs . iter_mut ( ) {
@@ -2101,7 +2101,7 @@ mod tests {
2101
2101
2102
2102
/// Test signing if all inputs are of type P2TR.
2103
2103
#[ test]
2104
- pub fn test_script_type_p2tr ( ) {
2104
+ fn test_script_type_p2tr ( ) {
2105
2105
let transaction =
2106
2106
alloc:: rc:: Rc :: new ( core:: cell:: RefCell :: new ( Transaction :: new ( pb:: BtcCoin :: Btc ) ) ) ;
2107
2107
for input in transaction. borrow_mut ( ) . inputs . iter_mut ( ) {
@@ -2150,7 +2150,7 @@ mod tests {
2150
2150
/// Test signing if with mixed inputs, one of them being taproot. Previous transactions of all
2151
2151
/// inputs should be streamed in this case.
2152
2152
#[ test]
2153
- pub fn test_script_type_p2tr_mixed ( ) {
2153
+ fn test_script_type_p2tr_mixed ( ) {
2154
2154
let transaction =
2155
2155
alloc:: rc:: Rc :: new ( core:: cell:: RefCell :: new ( Transaction :: new ( pb:: BtcCoin :: Btc ) ) ) ;
2156
2156
transaction. borrow_mut ( ) . inputs [ 0 ] . input . script_config_index = 1 ;
@@ -2191,7 +2191,7 @@ mod tests {
2191
2191
/// receive addresses at these indices (to mitigate ransom attacks), we should still be able to
2192
2192
/// spend them.
2193
2193
#[ test]
2194
- pub fn test_spend_high_address_index ( ) {
2194
+ fn test_spend_high_address_index ( ) {
2195
2195
let transaction =
2196
2196
alloc:: rc:: Rc :: new ( core:: cell:: RefCell :: new ( Transaction :: new ( pb:: BtcCoin :: Btc ) ) ) ;
2197
2197
transaction. borrow_mut ( ) . inputs [ 0 ] . input . keypath [ 4 ] = 100000 ;
@@ -2208,7 +2208,7 @@ mod tests {
2208
2208
2209
2209
/// Test invalid input cases.
2210
2210
#[ test]
2211
- pub fn test_invalid_input ( ) {
2211
+ fn test_invalid_input ( ) {
2212
2212
enum TestCase {
2213
2213
// all inputs should be the same coin type.
2214
2214
WrongCoinInput ,
@@ -2319,7 +2319,7 @@ mod tests {
2319
2319
2320
2320
/// Test signing with mixed input types.
2321
2321
#[ test]
2322
- pub fn test_mixed_inputs ( ) {
2322
+ fn test_mixed_inputs ( ) {
2323
2323
let transaction =
2324
2324
alloc:: rc:: Rc :: new ( core:: cell:: RefCell :: new ( Transaction :: new ( pb:: BtcCoin :: Btc ) ) ) ;
2325
2325
transaction. borrow_mut ( ) . inputs [ 0 ] . input . script_config_index = 1 ;
@@ -3588,7 +3588,7 @@ mod tests {
3588
3588
}
3589
3589
3590
3590
#[ test]
3591
- pub fn test_payment_request ( ) {
3591
+ fn test_payment_request ( ) {
3592
3592
let transaction =
3593
3593
alloc:: rc:: Rc :: new ( core:: cell:: RefCell :: new ( Transaction :: new ( pb:: BtcCoin :: Btc ) ) ) ;
3594
3594
0 commit comments