Home
last modified time | relevance | path

Searched refs:font_attr_segs (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/python/debug/cli/
Dcurses_widgets_test.py151 self.assertEqual({}, output.font_attr_segs)
169 self.assertEqual(2, output.font_attr_segs[0][0][0])
170 self.assertEqual(5, output.font_attr_segs[0][0][1])
171 self.assertEqual("prev", output.font_attr_segs[0][0][2].content)
173 self.assertEqual(12, output.font_attr_segs[0][1][0])
174 self.assertEqual(15, output.font_attr_segs[0][1][1])
175 self.assertEqual("green", output.font_attr_segs[0][1][2])
196 self.assertEqual(2, output.font_attr_segs[0][0][0])
197 self.assertEqual(5, output.font_attr_segs[0][0][1])
198 self.assertEqual("prev", output.font_attr_segs[0][0][2].content)
[all …]
Ddebugger_cli_common.py75 self.font_attr_segs = [(0, len(text), font_attr)]
77 self.font_attr_segs = []
97 ret.font_attr_segs = self.font_attr_segs[:]
101 ret.font_attr_segs = self.font_attr_segs[:]
103 for start, end, font_attr in other.font_attr_segs:
104 ret.font_attr_segs.append((old_len + start, old_len + end, font_attr))
124 font_attr_segs = {}
128 if rl.font_attr_segs:
129 font_attr_segs[i] = rl.font_attr_segs
132 return RichTextLines(lines, font_attr_segs, annotations=annotations)
[all …]
Ddebugger_cli_common_test.py53 font_attr_segs={0: [(0, 5, "red")],
59 self.assertEqual(2, len(screen_output.font_attr_segs))
60 self.assertEqual(1, len(screen_output.font_attr_segs[0]))
61 self.assertEqual(1, len(screen_output.font_attr_segs[1]))
75 font_attr_segs={0: [(0, 5, "red")]},
79 self.assertEqual(1, len(screen_output.font_attr_segs))
80 self.assertEqual(1, len(screen_output.font_attr_segs[0]))
86 font_attr_segs={0: [(0, 5, "red")]})
90 self.assertEqual(2, len(rtl.font_attr_segs))
91 self.assertEqual(1, len(rtl.font_attr_segs[0]))
[all …]
Dcli_shared_test.py138 annot = run_start_intro.font_attr_segs[11][0]
143 annot = run_start_intro.font_attr_segs[13][0]
149 self.assertEqual([(2, 12, "bold")], run_start_intro.font_attr_segs[15])
151 self.assertEqual([(2, 22, "bold")], run_start_intro.font_attr_segs[17])
305 annot = run_start_intro.font_attr_segs[20][0]
307 annot = run_start_intro.font_attr_segs[21][0]
340 error_intro.font_attr_segs[1])
343 self.assertEqual(2, error_intro.font_attr_segs[4][0][0])
344 self.assertEqual(22, error_intro.font_attr_segs[4][0][1])
346 error_intro.font_attr_segs[4][0][2][0].content)
[all …]
Danalyzer_cli.py584 font_attr_segs=[(
738 return debugger_cli_common.RichTextLines([row], font_attr_segs=attr_segs)
788 font_attr_segs = {
795 lines, font_attr_segs=font_attr_segs)
1015 font_attr_segs = {}
1021 font_attr_segs[len(lines) - 1] = [(
1033 lines, font_attr_segs=font_attr_segs)
1312 font_attr_segs = {}
1333 font_attr_segs[0] = [(len(line) - 1 - len(node_name), len(line) - 1, "bold")
1341 font_attr_segs,
[all …]
Dcurses_ui_test.py272 font_attr_segs = {}
275 font_attr_segs[i] = [(
290 lines, font_attr_segs=font_attr_segs, annotations=annotations)
837 self.assertEqual({}, ui.unwrapped_outputs[i].font_attr_segs)
844 self.assertEqual({}, ui.wrapped_outputs[0].font_attr_segs)
850 ui.wrapped_outputs[1].font_attr_segs[i])
856 ui.wrapped_outputs[2].font_attr_segs[i])
886 self.assertEqual({}, ui.unwrapped_outputs[i].font_attr_segs)
889 self.assertEqual({}, ui.wrapped_outputs[0].font_attr_segs)
897 }, ui.wrapped_outputs[j].font_attr_segs)
[all …]
Danalyzer_cli_test.py142 attr_segs = out.font_attr_segs
169 attr_segs = out.font_attr_segs[line_counter]
499 attr_segs = out.font_attr_segs[line_index]
922 out.font_attr_segs[0])
1047 self.assertEqual({0: [(0, 59, cli_shared.COLOR_RED)]}, out.font_attr_segs)
1114 self.assertEqual([(8, 11, "bold")], out.font_attr_segs[5])
1134 self.assertEqual([(9, 11, "bold")], out.font_attr_segs[4])
1135 self.assertNotIn(5, out.font_attr_segs)
1170 self.assertEqual([(8, 11, "bold")], out.font_attr_segs[11])
1408 out.font_attr_segs[index + 1][0][2].content)
[all …]
Dtensor_format.py104 font_attr_segs = {}
111 font_attr_segs[0] = [(8, 8 + len(tensor_label), "bold")]
117 font_attr_segs[0] = [
142 lines, font_attr_segs=font_attr_segs)
192 if row in formatted.font_attr_segs:
193 formatted.font_attr_segs[row].append(
196 formatted.font_attr_segs[row] = [(start_col, end_col,
Dcurses_ui.py181 [up_text], font_attr_segs={0: [(0, width, self.BASE_ATTR)]})
183 font_attr_segs = foreground_font_attr_segs if i == block_y else None
184 layout.append(empty_line, font_attr_segs=font_attr_segs)
185 layout.append(down_text, font_attr_segs=foreground_font_attr_segs)
922 self._nav_bar.font_attr_segs[0])
926 self._main_menu.font_attr_segs[0])
929 if absolute_mouse_y in self._curr_wrapped_output.font_attr_segs:
931 mouse_x, self._curr_wrapped_output.font_attr_segs[absolute_mouse_y])
1042 self._curr_wrapped_output.font_attr_segs[self.max_output_lines] = [
1163 if i in output.font_attr_segs:
[all …]
Dcli_config_test.py108 output.font_attr_segs[3][0])
109 self.assertEqual((14, 18, "bold"), output.font_attr_segs[3][1])
Dtensor_format_test.py132 if i not in out.font_attr_segs:
134 line_attrs = out.font_attr_segs[i]
155 self.assertEqual([(8, 8 + len(tensor_name), "bold")], out.font_attr_segs[0])
166 out.font_attr_segs[0])
303 self.assertNotIn(i, out.font_attr_segs)
Dprofile_analyzer_cli_test.py373 for seg in prof_output.font_attr_segs[line_index]:
418 for seg in prof_output.font_attr_segs[line_index]: