Skip to content

Commit 8cc2686

Browse files
committed
netty.resolver tests
1 parent 1b85e8b commit 8cc2686

File tree

14 files changed

+224
-0
lines changed

14 files changed

+224
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package generatedtest;
2+
3+
import io.netty.resolver.SimpleNameResolver;
4+
import io.netty.util.concurrent.Future;
5+
6+
// Test case generated by GenerateFlowTestCase.ql
7+
public class Test {
8+
9+
Object source() {
10+
return null;
11+
}
12+
13+
void sink(Object o) {}
14+
15+
public void test() throws Exception {
16+
17+
{
18+
// "io.netty.resolver;SimpleNameResolver;false;resolve;(String);;Argument[0];ReturnValue;taint;ai-generated"
19+
Future out = null;
20+
String in = (String) source();
21+
SimpleNameResolver instance = null;
22+
out = instance.resolve(in);
23+
sink(out); // $ hasTaintFlow
24+
}
25+
26+
}
27+
28+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../stubs/netty-4.1.x

java/ql/test/library-tests/frameworks/netty/test.expected

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import java
2+
import TestUtilities.InlineFlowTest

java/ql/test/stubs/netty-4.1.x/io/netty/resolver/NameResolver.java

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/ql/test/stubs/netty-4.1.x/io/netty/resolver/SimpleNameResolver.java

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/ql/test/stubs/netty-4.1.x/io/netty/util/concurrent/EventExecutor.java

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/ql/test/stubs/netty-4.1.x/io/netty/util/concurrent/EventExecutorGroup.java

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/ql/test/stubs/netty-4.1.x/io/netty/util/concurrent/Future.java

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/ql/test/stubs/netty-4.1.x/io/netty/util/concurrent/GenericFutureListener.java

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)