MCPcopy
hub / github.com/Col-E/Recaf / testClassNameRegex

Method testClassNameRegex

src/test/java/me/coley/recaf/SearchTest.java:256–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

254 }
255
256 @Test
257 public void testClassNameRegex() {
258 // Setup search - Regex for "Start" by matching only word characters (no package splits)
259 SearchCollector collector = SearchBuilder.in(workspace).skipDebug().skipCode()
260 .query(new ClassNameQuery("^\\w+$", REGEX)).build();
261 // Show results
262 List<SearchResult> results = collector.getAllResults();
263 assertEquals(1, results.size());
264 assertEquals("Start", ((ClassResult)results.get(0)).getName());
265 }
266
267 @Test
268 public void testClassInheritance() {

Callers

nothing calls this directly

Calls 9

inMethod · 0.95
getAllResultsMethod · 0.95
queryMethod · 0.80
skipCodeMethod · 0.80
skipDebugMethod · 0.80
buildMethod · 0.65
getNameMethod · 0.65
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected