-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test coverage api package [accounts, blocks, events, node, transactio…
…ns, transfers] (#681) * test: add test coverage for api events, transactions and transfers packages * test: refactored httpGet util function to check also response status code * test: refactored httpPost util function to check also response status code * test: refactored errors as exportable vars * refactor: replace POST and GET string with http.Method * test: raised package account coverage at 83.6% * test: raise api/blocks test coverage to 82.8% * test: raise node code coverage to 100% * test: add more tests * Fix: expected response error status * style: remove unnecessary trailing newline * refactor: rollback function extraction * tests: add new tests due to transactions.go rollback * refactor: rename test packages by appending _test * style: add comments to separate api/transactions tests * refactor: rollback export_test.go file exporting private function * typo: remove typo in test * refactor: fixes as per review * refactor: make errNotFound private again * tweak api/transaction tests, disable log for tests --------- Co-authored-by: tony <[email protected]>
- Loading branch information
1 parent
ac224fd
commit 1ed5a6a
Showing
14 changed files
with
1,091 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.