Skip to content

Commit 7c80834

Browse files
committed
rebase
1 parent f89f031 commit 7c80834

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

dd-java-agent/agent-debugger/debugger-el/src/test/java/com/datadog/debugger/el/ProbeConditionTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ void testLiterals() throws Exception {
242242

243243
@Test
244244
void testLenCount() throws Exception {
245-
ProbeCondition probeCondition = load("/test_conditional_13.json");
245+
ProbeCondition probeCondition = load("/test_conditional_14.json");
246246
Map<String, Object> fields = new HashMap<>();
247247
fields.put("intArray", new int[] {1, 1, 1});
248248
fields.put("strArray", new String[] {"foo", "bar"});
@@ -260,7 +260,6 @@ void testLenCount() throws Exception {
260260
assertTrue(probeCondition.execute(ctx));
261261
}
262262

263-
264263
private static ProbeCondition load(String resourcePath) throws IOException {
265264
InputStream input = ProbeConditionTest.class.getResourceAsStream(resourcePath);
266265
Moshi moshi =

dd-java-agent/agent-debugger/debugger-el/src/test/resources/test_conditional_13.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,4 @@
1313
}
1414
}
1515

16-
{
17-
"dsl": "",
18-
"json": {
19-
"and": [
20-
{"eq": [{"count": {"ref": "intArray"}}, 3]},
21-
{"eq": [{"len": {"ref": "intArray"}}, 3]},
22-
{"eq": [{"count": {"ref": "strArray"}}, 2]},
23-
{"eq": [{"count": {"ref": "strMap"}}, 2]},
24-
{"eq": [{"count": {"ref": "strSet"}}, 1]},
25-
{"eq": [{"count": {"ref": "strList"}}, 1]}
26-
]
27-
}
28-
}
29-
3016

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"dsl": "",
3+
"json": {
4+
"and": [
5+
{"eq": [{"count": {"ref": "intArray"}}, 3]},
6+
{"eq": [{"len": {"ref": "intArray"}}, 3]},
7+
{"eq": [{"count": {"ref": "strArray"}}, 2]},
8+
{"eq": [{"count": {"ref": "strMap"}}, 2]},
9+
{"eq": [{"count": {"ref": "strSet"}}, 1]},
10+
{"eq": [{"count": {"ref": "strList"}}, 1]}
11+
]
12+
}
13+
}

0 commit comments

Comments
 (0)