MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / run_test

Method run_test

test/functional/tool_utils.py:28–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 self.skip_if_no_bitcoin_util()
27
28 def run_test(self):
29 self.testcase_dir = Path(self.config["environment"]["SRCDIR"]) / "test" / "functional" / "data" / "util"
30 self.bins = self.get_binaries()
31 with open(self.testcase_dir / "bitcoin-util-test.json") as f:
32 input_data = json.loads(f.read())
33
34 for i, test_obj in enumerate(input_data):
35 self.log.debug(f"Running [{i}]: " + test_obj["description"])
36 self.test_one(test_obj)
37
38 def test_one(self, testObj):
39 """Runs a single test, comparing output and RC to expected output and RC.

Callers

nothing calls this directly

Calls 4

test_oneMethod · 0.95
get_binariesMethod · 0.80
enumerateFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected