Commit 818e5f2
committed
Merge #604: test: make explicit returned stdlib types in tests
60c493d test: add explicit types for methods returning stdlib types (Alexey Gradoboev)
Pull request description:
Fixes #600
No more primitive return types in tests
```
$ grep -rn 'let _ = .*node\.client' . --exclude-dir=target | awk -F'node.client.' '{print $2}' | awk -F'(' '{print $1}' | sort -u | xargs -I {} grep -rnE 'fn[[:space:]]+{}' . --exclude-dir=target
./client/src/client_sync/v17/hidden.rs:20: pub fn estimate_raw_fee(&self, conf_target: u32) -> Result<EstimateRawFee> {
./client/src/client_sync/v17/generating.rs:17: pub fn generate_to_address(
./client/src/client_sync/v26/mining.rs:17: pub fn get_prioritised_transactions(&self) -> Result<GetPrioritisedTransactions> {
./client/src/client_sync/v18/control.rs:15: pub fn get_rpc_info(&self) -> Result<GetRpcInfo> { self.call("getrpcinfo", &[]) }
./client/src/client_sync/v17/wallet.rs:180: pub fn new_address(&self) -> Result<bitcoin::Address> {
./client/src/client_sync/v17/wallet.rs:187: pub fn new_address_with_type(&self, ty: AddressType) -> Result<bitcoin::Address> {
./client/src/client_sync/v17/wallet.rs:195: pub fn new_address_with_label(
./client/src/client_sync/v17/wallet.rs:195: pub fn new_address_with_label(
./client/src/client_sync/v17/wallet.rs:187: pub fn new_address_with_type(&self, ty: AddressType) -> Result<bitcoin::Address> {
./client/src/client_sync/v17/raw_transactions.rs:180: pub fn send_raw_transaction(
./client/src/client_sync/v17/wallet.rs:579: pub fn send_to_address(
./client/src/client_sync/v17/wallet.rs:589: pub fn send_to_address_rbf(
$
```
ACKs for top commit:
jamillambert:
ACK 60c493d
tcharding:
ACK 60c493d
Tree-SHA512: 2f524c7e020d40d02f48e4164f6e69bf3634bc19c5b93ec66645bc5ec838beb3154e8e996414b99183d464170969ea9587f5bed0a5c0348bb2d20698dee29a132 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
597 | | - | |
| 597 | + | |
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
0 commit comments