MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / dump_help

Method dump_help

test/functional/rpc_help.py:46–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

44 assert_equal(titles, components)
45
46 def dump_help(self):
47 dump_dir = os.path.join(self.options.tmpdir, 'rpc_help_dump')
48 os.mkdir(dump_dir)
49 calls = [line.split(' ', 1)[0] for line in self.nodes[0].help().splitlines() if line and not line.startswith('==')]
50 for call in calls:
51 with open(os.path.join(dump_dir, call), 'w', encoding='utf-8') as f:
52 # Make sure the node can generate the help at runtime without crashing
53 f.write(self.nodes[0].help(call))
54
55
56if __name__ == '__main__':

Callers 1

run_testMethod · 0.95

Calls 3

joinMethod · 0.80
helpMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected