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

Method create_advanced_suite

xtop/tests/test_runner.py:210–233  ·  view source on GitHub ↗

Create advanced functionality test suite

(self)

Source from the content-addressed store, hash-verified

208 return suite
209
210 def create_advanced_suite(self) -> TestSuite:
211 """Create advanced functionality test suite"""
212 suite = TestSuite("Advanced Tests", "Complex queries and edge cases")
213
214 base_cmd = f"python3 ../xtop-test.py -d {self.datadir} --from '{self.from_time}' --to '{self.to_time}'"
215
216 tests = [
217 ("complex_grouping", "Complex multi-dimensional grouping",
218 f"{base_cmd} -g 'state,username,comm2,syscall' -l 'sc.p95_us' --limit 5 --format simple"),
219
220 ("device_names", "Device name resolution",
221 f"{base_cmd} -g 'devname,state' -l 'io.avg_lat_us' --limit 5 --format simple"),
222
223 ("connection_info", "Connection info from extra_info",
224 f"{base_cmd} -g 'connection,state' --limit 5 --format simple"),
225
226 ("file_extensions", "File extension analysis",
227 f"{base_cmd} -g 'fext,state' --limit 5 --format simple"),
228 ]
229
230 for name, desc, cmd in tests:
231 suite.add_test(TestCase(name, desc, cmd))
232
233 return suite
234
235 def create_format_suite(self) -> TestSuite:
236 """Create formatting-focused test suite."""

Callers 1

run_allMethod · 0.95

Calls 3

add_testMethod · 0.95
TestSuiteClass · 0.85
TestCaseClass · 0.85

Tested by

no test coverage detected