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

Method testClassNameEquals

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

Source from the content-addressed store, hash-verified

221 }
222
223 @Test
224 public void testClassNameEquals() {
225 // Setup search - Equality for "Start"
226 SearchCollector collector = SearchBuilder.in(workspace).skipDebug().skipCode()
227 .query(new ClassNameQuery("Start", EQUALS)).build();
228 // Show results
229 List<SearchResult> results = collector.getAllResults();
230 assertEquals(1, results.size());
231 assertEquals("Start", ((ClassResult)results.get(0)).getName());
232 }
233
234 @Test
235 public void testClassNameStartsWith() {

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