MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _babble

Method _babble

tensorflow/python/debug/cli/readline_ui_test.py:68–82  ·  view source on GitHub ↗
(self, args, screen_info=None)

Source from the content-addressed store, hash-verified

66 super(CursesTest, self).tearDown()
67
68 def _babble(self, args, screen_info=None):
69 ap = argparse.ArgumentParser(
70 description="Do babble.", usage=argparse.SUPPRESS)
71 ap.add_argument(
72 "-n",
73 "--num_times",
74 dest="num_times",
75 type=int,
76 default=60,
77 help="How many times to babble")
78
79 parsed = ap.parse_args(args)
80
81 lines = ["bar"] * parsed.num_times
82 return debugger_cli_common.RichTextLines(lines)
83
84 def testUIFactoryCreatesReadlineUI(self):
85 ui = ui_factory.get_ui(

Callers

nothing calls this directly

Calls 2

add_argumentMethod · 0.80
parse_argsMethod · 0.80

Tested by

no test coverage detected