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

Function lint_missing_hidden_wallet_args

test/lint/check-doc.py:50–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48
49
50def lint_missing_hidden_wallet_args():
51 wallet_args = check_output(CMD_GREP_WALLET_ARGS, shell=True).decode('utf8').strip()
52 wallet_hidden_args = check_output(CMD_GREP_WALLET_HIDDEN_ARGS, shell=True).decode('utf8').strip()
53
54 wallet_args = set(re.findall(re.compile(REGEX_DOC), wallet_args))
55 wallet_hidden_args = set(re.findall(re.compile(r' "([^"=]+)'), wallet_hidden_args))
56
57 hidden_missing = wallet_args.difference(wallet_hidden_args)
58 if hidden_missing:
59 assert 0, "Please add {} to the hidden args in DummyWalletInit::AddWalletOptions".format(hidden_missing)
60
61
62def main():

Callers 1

mainFunction · 0.85

Calls 2

formatMethod · 0.80
decodeMethod · 0.45

Tested by

no test coverage detected