laconicd-deprecated/rpc/backend
Vladislav Varadinov 9e5f4aaa73
tests: Add unit tests for rpc client endpoints (#1409)
* test: add preliminary unit tests and additional mocks for chain_info, account_info and filters

* tests: added additional mocked client calls

* tests: bumped coverage of call_tx to 56% and chain_info to 77%

* tests: bumped call_tx coverage to 70.2% and added additional mock client calls

* tests: tx_info preliminary tests added for debugging.

* tests: added test coverage for sign_tx and additional mocks

* tests: tx_info test coverage bumped to 60.3%

* test: coverage for tracing_tests now at 72%

* tests: added fee makert query client mocks and bumped chain_info to 87.6% coverage.

* tests: failing Cosmos auth module account query.

* tests: added FeeMarket Params mock to call_tx_test

* cleanup some unused code

* tests: added helper function to test suite for signing a Tx and bumped coverage of tx_info to 71.2%

* test: commented GetAccount error case and bumped chain_info to 90.3% coverage

* test: cleanup of tests in node_info, sign_tx and account_info

* Clean up print

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Apply suggestions from code review

* fix import issues

Co-authored-by: Vladislav Varadinov <vlad@evmos.org>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Freddy Caceres <facs95@gmail.com>
2022-11-17 01:35:15 +00:00
..
mocks tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
account_info_test.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
account_info.go fix(rpc): different result from eth_getProof comparing with Ethereum (#1431) 2022-11-06 09:27:33 +01:00
backend_suite_test.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
backend.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
blocks_test.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
blocks.go chore (deps): Update geth version to v1.10.25 (#1413) 2022-11-16 12:59:12 -05:00
call_tx_test.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
call_tx.go refactor(all): refactor errors import to use cosmossdk.io (#1456) 2022-11-14 20:40:14 +01:00
chain_info_test.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
chain_info.go chore (deps): Update geth version to v1.10.25 (#1413) 2022-11-16 12:59:12 -05:00
client_test.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
evm_query_client_test.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
feemarket_query_client_test.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
filters_test.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
filters.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
node_info_test.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
node_info.go refactor(all): refactor errors import to use cosmossdk.io (#1456) 2022-11-14 20:40:14 +01:00
sign_tx_test.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
sign_tx.go chore (deps): Update geth version to v1.10.25 (#1413) 2022-11-16 12:59:12 -05:00
tracing_test.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
tracing.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
tx_info_test.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
tx_info.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00
utils_test.go fix(rpc): different result from eth_getProof comparing with Ethereum (#1431) 2022-11-06 09:27:33 +01:00
utils.go tests: Add unit tests for rpc client endpoints (#1409) 2022-11-17 01:35:15 +00:00