MCPcopy Create free account
hub / github.com/FDio/vpp / before_api

Method before_api

test/hook.py:324–333  ·  view source on GitHub ↗

Wait for ENTER before executing API

(self, api_name, api_args)

Source from the content-addressed store, hash-verified

322 super(StepHook, self).before_cli(cli)
323
324 def before_api(self, api_name, api_args):
325 """Wait for ENTER before executing API"""
326 if self.skip():
327 print("Skip pause before executing API: %s (%s)" % (api_name, api_args))
328 else:
329 print(double_line_delim)
330 print("Test paused before executing API: %s (%s)" % (api_name, api_args))
331 print(single_line_delim)
332 self.user_input()
333 super(StepHook, self).before_api(api_name, api_args)
334
335
336class TraceHook(PollHook):

Callers

nothing calls this directly

Calls 4

skipMethod · 0.95
user_inputMethod · 0.95
printFunction · 0.85
before_apiMethod · 0.45

Tested by

no test coverage detected