feat(crash): find module name in stacktrace if available.

This commit is contained in:
huanghongxun
2021-10-20 02:17:58 +08:00
parent 16c96419d3
commit 74a20bf11d
2 changed files with 23 additions and 1 deletions

View File

@@ -419,6 +419,13 @@ public class CrashReportAnalyzerTest {
CrashReportAnalyzer.findKeywordsFromCrashReport(loadLog("/crash-report/mod/twilightforest.txt")));
}
@Test
public void optifine() throws IOException {
Assert.assertEquals(
new HashSet<>(Collections.singletonList("OptiFine")),
CrashReportAnalyzer.findKeywordsFromCrashReport(loadLog("/crash-report/mod/twilightforest_optifine_incompatibility.txt")));
}
@Test
public void wizardry() throws IOException {
Assert.assertEquals(