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

Method testClassNameEndsWith

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

Source from the content-addressed store, hash-verified

243 }
244
245 @Test
246 public void testClassNameEndsWith() {
247 // Setup search - Ends with for "ParenTHESIS"
248 SearchCollector collector = SearchBuilder.in(workspace).skipDebug().skipCode()
249 .query(new ClassNameQuery("thesis", ENDS_WITH)).build();
250 // Show results
251 List<SearchResult> results = collector.getAllResults();
252 assertEquals(1, results.size());
253 assertEquals("calc/Parenthesis", ((ClassResult)results.get(0)).getName());
254 }
255
256 @Test
257 public void testClassNameRegex() {

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