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.py76 self.font_attr_segs = [(0, len(text), font_attr)]
78 self.font_attr_segs = []
98 ret.font_attr_segs = self.font_attr_segs[:]
102 ret.font_attr_segs = self.font_attr_segs[:]
104 for start, end, font_attr in other.font_attr_segs:
105 ret.font_attr_segs.append((old_len + start, old_len + end, font_attr))
125 font_attr_segs = {}
129 if rl.font_attr_segs:
130 font_attr_segs[i] = rl.font_attr_segs
133 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])
152 annot = run_start_intro.font_attr_segs[21][0]
311 annot = run_start_intro.font_attr_segs[20][0]
313 annot = run_start_intro.font_attr_segs[21][0]
346 error_intro.font_attr_segs[1])
349 self.assertEqual(2, error_intro.font_attr_segs[4][0][0])
350 self.assertEqual(22, error_intro.font_attr_segs[4][0][1])
[all …]
Danalyzer_cli.py586 font_attr_segs=[(
740 return debugger_cli_common.RichTextLines([row], font_attr_segs=attr_segs)
790 font_attr_segs = {
797 lines, font_attr_segs=font_attr_segs)
1016 font_attr_segs = {}
1022 font_attr_segs[len(lines) - 1] = [(
1034 lines, font_attr_segs=font_attr_segs)
1313 font_attr_segs = {}
1334 font_attr_segs[0] = [(len(line) - 1 - len(node_name), len(line) - 1, "bold")
1342 font_attr_segs,
[all …]
Dcurses_ui_test.py267 font_attr_segs = {}
270 font_attr_segs[i] = [(
285 lines, font_attr_segs=font_attr_segs, annotations=annotations)
832 self.assertEqual({}, ui.unwrapped_outputs[i].font_attr_segs)
839 self.assertEqual({}, ui.wrapped_outputs[0].font_attr_segs)
845 ui.wrapped_outputs[1].font_attr_segs[i])
851 ui.wrapped_outputs[2].font_attr_segs[i])
881 self.assertEqual({}, ui.unwrapped_outputs[i].font_attr_segs)
884 self.assertEqual({}, ui.wrapped_outputs[0].font_attr_segs)
892 }, ui.wrapped_outputs[j].font_attr_segs)
[all …]
Danalyzer_cli_test.py135 attr_segs = out.font_attr_segs
167 attr_segs = out.font_attr_segs[line_counter]
499 attr_segs = out.font_attr_segs[line_index]
903 out.font_attr_segs[0])
1021 self.assertEqual({0: [(0, 59, cli_shared.COLOR_RED)]}, out.font_attr_segs)
1088 self.assertEqual([(8, 11, "bold")], out.font_attr_segs[5])
1108 self.assertEqual([(9, 11, "bold")], out.font_attr_segs[4])
1109 self.assertNotIn(5, out.font_attr_segs)
1144 self.assertEqual([(8, 11, "bold")], out.font_attr_segs[11])
1382 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]: