MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / check_command

Function check_command

pager_lib/getmac/getmac.py:168–172  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

166
167
168def check_command(command):
169 # type: (str) -> bool
170 if command not in CHECK_COMMAND_CACHE:
171 CHECK_COMMAND_CACHE[command] = bool(which(command, path=PATH_STR))
172 return CHECK_COMMAND_CACHE[command]
173
174
175def check_path(filepath):

Callers 15

testMethod · 0.85
testMethod · 0.85
testMethod · 0.85
testMethod · 0.85
testMethod · 0.85
testMethod · 0.85
testMethod · 0.85
testMethod · 0.85
testMethod · 0.85
testMethod · 0.85
testMethod · 0.85
testMethod · 0.85

Calls 1

whichFunction · 0.90

Tested by

no test coverage detected