MCPcopy Create free account
hub / github.com/ElementsProject/elements / report_rpc_coverage

Method report_rpc_coverage

test/functional/test_runner.py:819–832  ·  view source on GitHub ↗

Print out RPC commands that were unexercised by tests.

(self)

Source from the content-addressed store, hash-verified

817 self.flag = '--coveragedir=%s' % self.dir
818
819 def report_rpc_coverage(self):
820 """
821 Print out RPC commands that were unexercised by tests.
822
823 """
824 uncovered = self._get_uncovered_rpc_commands()
825
826 if uncovered:
827 print("Uncovered RPC commands:")
828 print("".join((" - %s\n" % command) for command in sorted(uncovered)))
829 return False
830 else:
831 print("All RPC commands covered.")
832 return True
833
834 def cleanup(self):
835 return shutil.rmtree(self.dir)

Callers 1

run_testsFunction · 0.95

Calls 2

joinMethod · 0.45

Tested by

no test coverage detected