Skip to content

Commit

Permalink
apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahgraham committed May 2, 2024
1 parent 33cc0bb commit 8afc2f3
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public boolean isCpp() {
// int * p = (int*)dontcall());
//}
public void testWithFunctionCall() throws Exception {
setPreferenceValue(ForbiddenlistChecker.ERR_ID, ForbiddenlistChecker.PARAM_FORBIDDENLIST, new String[] { "dontcall" });
setPreferenceValue(ForbiddenlistChecker.ERR_ID, ForbiddenlistChecker.PARAM_FORBIDDENLIST,
new String[] { "dontcall" });
loadCodeAndRun(getAboveComment());
checkErrorLine(1, ERR_ID);
checkErrorLine(5, ERR_ID);
Expand All @@ -51,7 +52,8 @@ public void testWithFunctionCall() throws Exception {
// void* (*ptr)() = dontcall;
//}
public void testWithFunctionPtr() throws Exception {
setPreferenceValue(ForbiddenlistChecker.ERR_ID, ForbiddenlistChecker.PARAM_FORBIDDENLIST, new String[] { "dontcall" });
setPreferenceValue(ForbiddenlistChecker.ERR_ID, ForbiddenlistChecker.PARAM_FORBIDDENLIST,
new String[] { "dontcall" });
loadCodeAndRun(getAboveComment());
checkErrorLine(1, ERR_ID);
checkErrorLine(5, ERR_ID);
Expand All @@ -68,7 +70,8 @@ public void testWithFunctionPtr() throws Exception {
// f.dontcall();
//}
public void testWithMethod() throws Exception {
setPreferenceValue(ForbiddenlistChecker.ERR_ID, ForbiddenlistChecker.PARAM_FORBIDDENLIST, new String[] { "Foo::dontcall" });
setPreferenceValue(ForbiddenlistChecker.ERR_ID, ForbiddenlistChecker.PARAM_FORBIDDENLIST,
new String[] { "Foo::dontcall" });
loadCodeAndRun(getAboveComment());
checkErrorLine(3, ERR_ID);
checkErrorLine(9, ERR_ID);
Expand Down

0 comments on commit 8afc2f3

Please sign in to comment.