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

Method testStyleLoadOrder

src/test/java/me/coley/recaf/StylerTest.java:32–46  ·  view source on GitHub ↗
(String first, String second)

Source from the content-addressed store, hash-verified

30 }
31
32 @ParameterizedTest
33 @MethodSource("generateCombinations")
34 public void testStyleLoadOrder(String first, String second) {
35 try {
36 LanguageStyler styler = new LanguageStyler(Languages.find(first));
37 styler.computeStyle(langToExample.get(first));
38 //
39 styler = new LanguageStyler(Languages.find(second));
40 styler.computeStyle(langToExample.get(second));
41 } catch(Throwable ex) {
42 // If the system regresses to how it used to fail, it will throw a NPE
43 // when the styler tries to use Matcher.find()
44 fail(ex);
45 }
46 }
47
48 public static Stream<Arguments> generateCombinations() {
49 List<Arguments> pairs = new ArrayList<>();

Callers

nothing calls this directly

Calls 3

findMethod · 0.95
computeStyleMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected