MCPcopy
hub / github.com/kubernetes/test-infra / __call__

Method __call__

jenkins/bootstrap_test.py:77–84  ·  view source on GitHub ↗
(self, cmd, *a, **kw)

Source from the content-addressed store, hash-verified

75 self.output = {}
76
77 def __call__(self, cmd, *a, **kw):
78 self.calls.append((cmd, a, kw))
79 for arg in cmd:
80 if arg.startswith('/') and os.path.exists(arg):
81 self.file_data.append(open(arg).read())
82 if kw.get('output') and self.output.get(cmd[0]):
83 return self.output[cmd[0]].pop(0)
84 return None
85
86
87# pylint: disable=invalid-name

Callers

nothing calls this directly

Calls 4

openFunction · 0.85
appendMethod · 0.80
readMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected