MCPcopy
hub / github.com/tanelpoder/0xtools / execute_in_tui

Method execute_in_tui

xtop/tests/test_tui_mapping.py:116–133  ·  view source on GitHub ↗

Execute this test case in the TUI

(self, pilot, mapper: TUITestMapper)

Source from the content-addressed store, hash-verified

114 self.peek = peek
115
116 async def execute_in_tui(self, pilot, mapper: TUITestMapper):
117 """Execute this test case in the TUI"""
118 # Apply group columns
119 await mapper.apply_group_columns(self.group_cols)
120
121 # Apply latency columns
122 await mapper.apply_latency_columns(self.latency_cols)
123
124 # Apply filter
125 await mapper.apply_filter(self.where_clause)
126
127 # Peek if requested
128 if self.peek and self.latency_cols:
129 # Peek at first histogram column
130 for col in self.latency_cols:
131 if 'HISTOGRAM' in col:
132 await mapper.peek_column(col)
133 break
134
135 def validate_result(self, app) -> bool:
136 """Validate that the TUI shows expected columns"""

Callers 1

test_cli_mappingFunction · 0.80

Calls 4

apply_group_columnsMethod · 0.80
apply_latency_columnsMethod · 0.80
apply_filterMethod · 0.80
peek_columnMethod · 0.80

Tested by

no test coverage detected