citadel-tech / coinswap

Functioning, minimal-viable binaries and libraries to perform a trustless, p2p Maxwell-Belcher Coinswap Protocol

Home Page:https://gist.github.com/chris-belcher/9144bd57a91c194e332fb5ca371d0964

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

test: Unit test for wallet/rpc.rs

Shourya742 opened this issue · comments

Issue Description:
This issue highlights the need for unit tests in our wallet/rpc.rs file. Currently, several methods and functions in this file are untested, which could lead to potential issues in the future.

Objective:
Write unit tests for each method and associated function in the wallet/rpc.rs file.

Details:

  • Cover all methods and functions with appropriate test cases.
  • Ensure tests validate functionality, handle edge cases, and check error conditions.
  • Integrate the tests into our existing test suite.
commented

Theres nothing much to test for rpc, and most stuffs are covered in IT.