1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
load("//bazel:kotlin.bzl", "wrapped_kt_jvm_test")
load("@io_bazel_rules_kotlin//kotlin:jvm.bzl", "kt_jvm_library")
kt_jvm_library(
name = "patch_test_utils",
srcs = [
"DynamicTestContract.java",
"PatchTestUtils.kt",
],
visibility = ["//visibility:public"],
)
wrapped_kt_jvm_test(
name = "trace_data_flow_instrumentation_test",
size = "small",
srcs = [
"MockTraceDataFlowCallbacks.java",
"TraceDataFlowInstrumentationTarget.java",
"TraceDataFlowInstrumentationTest.kt",
],
associates = [
"//agent/src/main/java/com/code_intelligence/jazzer/instrumentor:instrumentor",
],
test_class = "com.code_intelligence.jazzer.instrumentor.TraceDataFlowInstrumentationTest",
deps = [
":patch_test_utils",
"@com_github_jetbrains_kotlin//:kotlin-test",
"@maven//:junit_junit",
],
)
wrapped_kt_jvm_test(
name = "coverage_instrumentation_test",
size = "small",
srcs = [
"CoverageInstrumentationSpecialCasesTarget.java",
"CoverageInstrumentationTarget.java",
"CoverageInstrumentationTest.kt",
"MockCoverageMap.java",
],
associates = [
"//agent/src/main/java/com/code_intelligence/jazzer/instrumentor:instrumentor",
],
test_class = "com.code_intelligence.jazzer.instrumentor.CoverageInstrumentationTest",
deps = [
":patch_test_utils",
"@com_github_jetbrains_kotlin//:kotlin-test",
"@maven//:junit_junit",
],
)
wrapped_kt_jvm_test(
name = "descriptor_utils_test",
size = "small",
srcs = [
"DescriptorUtilsTest.kt",
],
associates = [
"//agent/src/main/java/com/code_intelligence/jazzer/instrumentor:instrumentor",
],
test_class = "com.code_intelligence.jazzer.instrumentor.DescriptorUtilsTest",
deps = [
"@com_github_jetbrains_kotlin//:kotlin-test",
"@maven//:junit_junit",
],
)
wrapped_kt_jvm_test(
name = "hook_validation_test",
size = "small",
srcs = [
"HookValidationTest.kt",
"InvalidHookMocks.java",
"ValidHookMocks.java",
],
associates = [
"//agent/src/main/java/com/code_intelligence/jazzer/instrumentor:instrumentor",
],
test_class = "com.code_intelligence.jazzer.instrumentor.HookValidationTest",
deps = [
"//agent/src/main/java/com/code_intelligence/jazzer/api",
"@com_github_jetbrains_kotlin//:kotlin-test",
"@maven//:junit_junit",
],
)
wrapped_kt_jvm_test(
name = "after_hooks_patch_test",
size = "small",
srcs = [
"AfterHooks.java",
"AfterHooksPatchTest.kt",
"AfterHooksTarget.java",
"AfterHooksTargetContract.java",
],
associates = [
"//agent/src/main/java/com/code_intelligence/jazzer/instrumentor:instrumentor",
],
test_class = "com.code_intelligence.jazzer.instrumentor.AfterHookTest",
deps = [
":patch_test_utils",
"//agent/src/main/java/com/code_intelligence/jazzer/api",
"@com_github_jetbrains_kotlin//:kotlin-test",
"@maven//:junit_junit",
],
)
wrapped_kt_jvm_test(
name = "before_hooks_patch_test",
size = "small",
srcs = [
"BeforeHooks.java",
"BeforeHooksPatchTest.kt",
"BeforeHooksTarget.java",
"BeforeHooksTargetContract.java",
],
associates = [
"//agent/src/main/java/com/code_intelligence/jazzer/instrumentor:instrumentor",
],
test_class = "com.code_intelligence.jazzer.instrumentor.BeforeHookTest",
deps = [
":patch_test_utils",
"//agent/src/main/java/com/code_intelligence/jazzer/api",
"@com_github_jetbrains_kotlin//:kotlin-test",
"@maven//:junit_junit",
],
)
wrapped_kt_jvm_test(
name = "replace_hooks_patch_test",
size = "small",
srcs = [
"ReplaceHooks.java",
"ReplaceHooksInit.java",
"ReplaceHooksPatchTest.kt",
"ReplaceHooksTarget.java",
"ReplaceHooksTargetContract.java",
],
associates = [
"//agent/src/main/java/com/code_intelligence/jazzer/instrumentor:instrumentor",
],
test_class = "com.code_intelligence.jazzer.instrumentor.ReplaceHookTest",
deps = [
":patch_test_utils",
"//agent/src/main/java/com/code_intelligence/jazzer/api",
"@com_github_jetbrains_kotlin//:kotlin-test",
"@maven//:junit_junit",
],
)
|