diff --git a/Cargo.lock b/Cargo.lock index f084635f..01378668 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -59,6 +59,7 @@ dependencies = [ "arborium-go", "arborium-highlight", "arborium-html", + "arborium-java", "arborium-javascript", "arborium-json", "arborium-python", @@ -138,6 +139,17 @@ dependencies = [ "tree-sitter-language", ] +[[package]] +name = "arborium-java" +version = "2.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aabb607d0a835d6f9f93b99f937c9f5304115a16ff5009890ac665005baf159" +dependencies = [ + "arborium-sysroot", + "cc", + "tree-sitter-language", +] + [[package]] name = "arborium-javascript" version = "2.16.0" @@ -335,6 +347,7 @@ version = "0.0.2" dependencies = [ "arborium-c", "arborium-go", + "arborium-java", "arborium-javascript", "arborium-python", "arborium-tree-sitter", diff --git a/corpus/java/add-assign/445559e8a095.java b/corpus/java/add-assign/445559e8a095.java new file mode 100644 index 00000000..5e86ac7b --- /dev/null +++ b/corpus/java/add-assign/445559e8a095.java @@ -0,0 +1 @@ +x += -1; \ No newline at end of file diff --git a/corpus/java/add-assign/445559e8a095.mutation.json b/corpus/java/add-assign/445559e8a095.mutation.json new file mode 100644 index 00000000..1bb81377 --- /dev/null +++ b/corpus/java/add-assign/445559e8a095.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/add-assign/8cc605a5e77e.java b/corpus/java/add-assign/8cc605a5e77e.java new file mode 100644 index 00000000..97375eae --- /dev/null +++ b/corpus/java/add-assign/8cc605a5e77e.java @@ -0,0 +1 @@ +x -= 1; \ No newline at end of file diff --git a/corpus/java/add-assign/8cc605a5e77e.mutation.json b/corpus/java/add-assign/8cc605a5e77e.mutation.json new file mode 100644 index 00000000..b1482c35 --- /dev/null +++ b/corpus/java/add-assign/8cc605a5e77e.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "AddAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 4, + "byte": 4 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "-=" +} \ No newline at end of file diff --git a/corpus/java/add-assign/8dd277e930b0.java b/corpus/java/add-assign/8dd277e930b0.java new file mode 100644 index 00000000..a1730cfa --- /dev/null +++ b/corpus/java/add-assign/8dd277e930b0.java @@ -0,0 +1 @@ +x += 0; \ No newline at end of file diff --git a/corpus/java/add-assign/8dd277e930b0.mutation.json b/corpus/java/add-assign/8dd277e930b0.mutation.json new file mode 100644 index 00000000..731460fc --- /dev/null +++ b/corpus/java/add-assign/8dd277e930b0.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/add-assign/base.java b/corpus/java/add-assign/base.java new file mode 100644 index 00000000..c2a8ba18 --- /dev/null +++ b/corpus/java/add-assign/base.java @@ -0,0 +1 @@ +x += 1; \ No newline at end of file diff --git a/corpus/java/add-assign/d378c09abdab.java b/corpus/java/add-assign/d378c09abdab.java new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/java/add-assign/d378c09abdab.java @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/java/add-assign/d378c09abdab.mutation.json b/corpus/java/add-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..011dfcea --- /dev/null +++ b/corpus/java/add-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "AddAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 4, + "byte": 4 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/java/add-assign/fdbf18e39a1b.java b/corpus/java/add-assign/fdbf18e39a1b.java new file mode 100644 index 00000000..c2a8ba18 --- /dev/null +++ b/corpus/java/add-assign/fdbf18e39a1b.java @@ -0,0 +1 @@ +x += 1; \ No newline at end of file diff --git a/corpus/java/add-assign/fdbf18e39a1b.mutation.json b/corpus/java/add-assign/fdbf18e39a1b.mutation.json new file mode 100644 index 00000000..e97331ce --- /dev/null +++ b/corpus/java/add-assign/fdbf18e39a1b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/array-decl-inline/1f66e2db7608.java b/corpus/java/array-decl-inline/1f66e2db7608.java new file mode 100644 index 00000000..23b16f4e --- /dev/null +++ b/corpus/java/array-decl-inline/1f66e2db7608.java @@ -0,0 +1 @@ +int[] x = {1, 2, 3}; \ No newline at end of file diff --git a/corpus/java/array-decl-inline/1f66e2db7608.mutation.json b/corpus/java/array-decl-inline/1f66e2db7608.mutation.json new file mode 100644 index 00000000..06e470dd --- /dev/null +++ b/corpus/java/array-decl-inline/1f66e2db7608.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/array-decl-inline/2997ea062cce.java b/corpus/java/array-decl-inline/2997ea062cce.java new file mode 100644 index 00000000..01c9d4b6 --- /dev/null +++ b/corpus/java/array-decl-inline/2997ea062cce.java @@ -0,0 +1 @@ +int[] x = {1, -1, 3}; \ No newline at end of file diff --git a/corpus/java/array-decl-inline/2997ea062cce.mutation.json b/corpus/java/array-decl-inline/2997ea062cce.mutation.json new file mode 100644 index 00000000..6dae435b --- /dev/null +++ b/corpus/java/array-decl-inline/2997ea062cce.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/array-decl-inline/4e837df92057.java b/corpus/java/array-decl-inline/4e837df92057.java new file mode 100644 index 00000000..b3f644c2 --- /dev/null +++ b/corpus/java/array-decl-inline/4e837df92057.java @@ -0,0 +1 @@ +int[] x = {1, 2, 1}; \ No newline at end of file diff --git a/corpus/java/array-decl-inline/4e837df92057.mutation.json b/corpus/java/array-decl-inline/4e837df92057.mutation.json new file mode 100644 index 00000000..c1362815 --- /dev/null +++ b/corpus/java/array-decl-inline/4e837df92057.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/array-decl-inline/5e18d897b928.java b/corpus/java/array-decl-inline/5e18d897b928.java new file mode 100644 index 00000000..5d869e75 --- /dev/null +++ b/corpus/java/array-decl-inline/5e18d897b928.java @@ -0,0 +1 @@ +int[] x = {1, 2, 0}; \ No newline at end of file diff --git a/corpus/java/array-decl-inline/5e18d897b928.mutation.json b/corpus/java/array-decl-inline/5e18d897b928.mutation.json new file mode 100644 index 00000000..fcca5bed --- /dev/null +++ b/corpus/java/array-decl-inline/5e18d897b928.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/array-decl-inline/79c8e2a3796a.java b/corpus/java/array-decl-inline/79c8e2a3796a.java new file mode 100644 index 00000000..386c216b --- /dev/null +++ b/corpus/java/array-decl-inline/79c8e2a3796a.java @@ -0,0 +1 @@ +int[] x = {1, 1, 3}; \ No newline at end of file diff --git a/corpus/java/array-decl-inline/79c8e2a3796a.mutation.json b/corpus/java/array-decl-inline/79c8e2a3796a.mutation.json new file mode 100644 index 00000000..1b4dcf4b --- /dev/null +++ b/corpus/java/array-decl-inline/79c8e2a3796a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/array-decl-inline/a2340db3e9c0.java b/corpus/java/array-decl-inline/a2340db3e9c0.java new file mode 100644 index 00000000..202cde81 --- /dev/null +++ b/corpus/java/array-decl-inline/a2340db3e9c0.java @@ -0,0 +1 @@ +int[] x = {}; \ No newline at end of file diff --git a/corpus/java/array-decl-inline/a2340db3e9c0.mutation.json b/corpus/java/array-decl-inline/a2340db3e9c0.mutation.json new file mode 100644 index 00000000..f50f0429 --- /dev/null +++ b/corpus/java/array-decl-inline/a2340db3e9c0.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "ArrayDecl": "Inline" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 19, + "byte": 19 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 19, + "byte": 19 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/java/array-decl-inline/base.java b/corpus/java/array-decl-inline/base.java new file mode 100644 index 00000000..23b16f4e --- /dev/null +++ b/corpus/java/array-decl-inline/base.java @@ -0,0 +1 @@ +int[] x = {1, 2, 3}; \ No newline at end of file diff --git a/corpus/java/array-decl-inline/d49f51cc544d.java b/corpus/java/array-decl-inline/d49f51cc544d.java new file mode 100644 index 00000000..da0169ca --- /dev/null +++ b/corpus/java/array-decl-inline/d49f51cc544d.java @@ -0,0 +1 @@ +int[] x = {-1, 2, 3}; \ No newline at end of file diff --git a/corpus/java/array-decl-inline/d49f51cc544d.mutation.json b/corpus/java/array-decl-inline/d49f51cc544d.mutation.json new file mode 100644 index 00000000..f02d9290 --- /dev/null +++ b/corpus/java/array-decl-inline/d49f51cc544d.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/array-decl-inline/eb04839ac209.java b/corpus/java/array-decl-inline/eb04839ac209.java new file mode 100644 index 00000000..645fec0a --- /dev/null +++ b/corpus/java/array-decl-inline/eb04839ac209.java @@ -0,0 +1 @@ +int[] x = {0, 2, 3}; \ No newline at end of file diff --git a/corpus/java/array-decl-inline/eb04839ac209.mutation.json b/corpus/java/array-decl-inline/eb04839ac209.mutation.json new file mode 100644 index 00000000..635a2d1d --- /dev/null +++ b/corpus/java/array-decl-inline/eb04839ac209.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/array-decl-inline/f3950e00cfa3.java b/corpus/java/array-decl-inline/f3950e00cfa3.java new file mode 100644 index 00000000..7637de21 --- /dev/null +++ b/corpus/java/array-decl-inline/f3950e00cfa3.java @@ -0,0 +1 @@ +int[] x = {1, 2, -1}; \ No newline at end of file diff --git a/corpus/java/array-decl-inline/f3950e00cfa3.mutation.json b/corpus/java/array-decl-inline/f3950e00cfa3.mutation.json new file mode 100644 index 00000000..dc66b2cd --- /dev/null +++ b/corpus/java/array-decl-inline/f3950e00cfa3.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 17, + "byte": 17 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/array-decl-inline/f686f207e1e2.java b/corpus/java/array-decl-inline/f686f207e1e2.java new file mode 100644 index 00000000..4f518a8b --- /dev/null +++ b/corpus/java/array-decl-inline/f686f207e1e2.java @@ -0,0 +1 @@ +int[] x = {1, 0, 3}; \ No newline at end of file diff --git a/corpus/java/array-decl-inline/f686f207e1e2.mutation.json b/corpus/java/array-decl-inline/f686f207e1e2.mutation.json new file mode 100644 index 00000000..0096eb00 --- /dev/null +++ b/corpus/java/array-decl-inline/f686f207e1e2.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/assert/1cf6a416ba1f.java b/corpus/java/assert/1cf6a416ba1f.java new file mode 100644 index 00000000..d047e016 --- /dev/null +++ b/corpus/java/assert/1cf6a416ba1f.java @@ -0,0 +1 @@ +assert x <= 0; \ No newline at end of file diff --git a/corpus/java/assert/1cf6a416ba1f.mutation.json b/corpus/java/assert/1cf6a416ba1f.mutation.json new file mode 100644 index 00000000..aa7d3458 --- /dev/null +++ b/corpus/java/assert/1cf6a416ba1f.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Gt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 10, + "byte": 10 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 7, + "byte": 7 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + } + }, + "subst": "<=" +} \ No newline at end of file diff --git a/corpus/java/assert/41b805ea7ac0.java b/corpus/java/assert/41b805ea7ac0.java new file mode 100644 index 00000000..1c8a0e79 --- /dev/null +++ b/corpus/java/assert/41b805ea7ac0.java @@ -0,0 +1 @@ +; \ No newline at end of file diff --git a/corpus/java/assert/41b805ea7ac0.mutation.json b/corpus/java/assert/41b805ea7ac0.mutation.json new file mode 100644 index 00000000..81d9a8e6 --- /dev/null +++ b/corpus/java/assert/41b805ea7ac0.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": "Assert", + "subst_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": ";" +} \ No newline at end of file diff --git a/corpus/java/assert/4caeb52527a1.java b/corpus/java/assert/4caeb52527a1.java new file mode 100644 index 00000000..9bea0935 --- /dev/null +++ b/corpus/java/assert/4caeb52527a1.java @@ -0,0 +1 @@ +assert x > 0; \ No newline at end of file diff --git a/corpus/java/assert/4caeb52527a1.mutation.json b/corpus/java/assert/4caeb52527a1.mutation.json new file mode 100644 index 00000000..635a2d1d --- /dev/null +++ b/corpus/java/assert/4caeb52527a1.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/assert/8fc8b02981af.java b/corpus/java/assert/8fc8b02981af.java new file mode 100644 index 00000000..3e3c7cb2 --- /dev/null +++ b/corpus/java/assert/8fc8b02981af.java @@ -0,0 +1 @@ +assert x >= 0; \ No newline at end of file diff --git a/corpus/java/assert/8fc8b02981af.mutation.json b/corpus/java/assert/8fc8b02981af.mutation.json new file mode 100644 index 00000000..42b9b063 --- /dev/null +++ b/corpus/java/assert/8fc8b02981af.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Gt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 10, + "byte": 10 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 7, + "byte": 7 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + } + }, + "subst": ">=" +} \ No newline at end of file diff --git a/corpus/java/assert/a6b650276ece.java b/corpus/java/assert/a6b650276ece.java new file mode 100644 index 00000000..cbbc4e88 --- /dev/null +++ b/corpus/java/assert/a6b650276ece.java @@ -0,0 +1 @@ +assert x > 1; \ No newline at end of file diff --git a/corpus/java/assert/a6b650276ece.mutation.json b/corpus/java/assert/a6b650276ece.mutation.json new file mode 100644 index 00000000..06e470dd --- /dev/null +++ b/corpus/java/assert/a6b650276ece.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/assert/base.java b/corpus/java/assert/base.java new file mode 100644 index 00000000..9bea0935 --- /dev/null +++ b/corpus/java/assert/base.java @@ -0,0 +1 @@ +assert x > 0; \ No newline at end of file diff --git a/corpus/java/assert/c3baae3055a4.java b/corpus/java/assert/c3baae3055a4.java new file mode 100644 index 00000000..7b1204dd --- /dev/null +++ b/corpus/java/assert/c3baae3055a4.java @@ -0,0 +1 @@ +assert x > -1; \ No newline at end of file diff --git a/corpus/java/assert/c3baae3055a4.mutation.json b/corpus/java/assert/c3baae3055a4.mutation.json new file mode 100644 index 00000000..f02d9290 --- /dev/null +++ b/corpus/java/assert/c3baae3055a4.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/bin-op-add/9f2b707800fd.java b/corpus/java/bin-op-add/9f2b707800fd.java new file mode 100644 index 00000000..09793e83 --- /dev/null +++ b/corpus/java/bin-op-add/9f2b707800fd.java @@ -0,0 +1 @@ +int x = a * b; \ No newline at end of file diff --git a/corpus/java/bin-op-add/9f2b707800fd.mutation.json b/corpus/java/bin-op-add/9f2b707800fd.mutation.json new file mode 100644 index 00000000..f45bc419 --- /dev/null +++ b/corpus/java/bin-op-add/9f2b707800fd.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Add" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "*" +} \ No newline at end of file diff --git a/corpus/java/bin-op-add/base.java b/corpus/java/bin-op-add/base.java new file mode 100644 index 00000000..3080bce8 --- /dev/null +++ b/corpus/java/bin-op-add/base.java @@ -0,0 +1 @@ +int x = a + b; \ No newline at end of file diff --git a/corpus/java/bin-op-add/d7f9d93f4ccc.java b/corpus/java/bin-op-add/d7f9d93f4ccc.java new file mode 100644 index 00000000..b33c54f1 --- /dev/null +++ b/corpus/java/bin-op-add/d7f9d93f4ccc.java @@ -0,0 +1 @@ +int x = a - b; \ No newline at end of file diff --git a/corpus/java/bin-op-add/d7f9d93f4ccc.mutation.json b/corpus/java/bin-op-add/d7f9d93f4ccc.mutation.json new file mode 100644 index 00000000..be99f712 --- /dev/null +++ b/corpus/java/bin-op-add/d7f9d93f4ccc.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Add" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "-" +} \ No newline at end of file diff --git a/corpus/java/bin-op-and/5e768c0ffd3f.java b/corpus/java/bin-op-and/5e768c0ffd3f.java new file mode 100644 index 00000000..f8915ce9 --- /dev/null +++ b/corpus/java/bin-op-and/5e768c0ffd3f.java @@ -0,0 +1 @@ +boolean x = a || b; \ No newline at end of file diff --git a/corpus/java/bin-op-and/5e768c0ffd3f.mutation.json b/corpus/java/bin-op-and/5e768c0ffd3f.mutation.json new file mode 100644 index 00000000..4b84b86f --- /dev/null +++ b/corpus/java/bin-op-and/5e768c0ffd3f.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "And" + }, + "subst_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "||" +} \ No newline at end of file diff --git a/corpus/java/bin-op-and/base.java b/corpus/java/bin-op-and/base.java new file mode 100644 index 00000000..70a6a6b2 --- /dev/null +++ b/corpus/java/bin-op-and/base.java @@ -0,0 +1 @@ +boolean x = a && b; \ No newline at end of file diff --git a/corpus/java/bin-op-bit-and/38f5d58c2ffe.java b/corpus/java/bin-op-bit-and/38f5d58c2ffe.java new file mode 100644 index 00000000..de7e8e20 --- /dev/null +++ b/corpus/java/bin-op-bit-and/38f5d58c2ffe.java @@ -0,0 +1 @@ +int x = a ^ b; \ No newline at end of file diff --git a/corpus/java/bin-op-bit-and/38f5d58c2ffe.mutation.json b/corpus/java/bin-op-bit-and/38f5d58c2ffe.mutation.json new file mode 100644 index 00000000..99b05948 --- /dev/null +++ b/corpus/java/bin-op-bit-and/38f5d58c2ffe.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "BitAnd" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "^" +} \ No newline at end of file diff --git a/corpus/java/bin-op-bit-and/70166bbd7f82.java b/corpus/java/bin-op-bit-and/70166bbd7f82.java new file mode 100644 index 00000000..7e75c35e --- /dev/null +++ b/corpus/java/bin-op-bit-and/70166bbd7f82.java @@ -0,0 +1 @@ +int x = a | b; \ No newline at end of file diff --git a/corpus/java/bin-op-bit-and/70166bbd7f82.mutation.json b/corpus/java/bin-op-bit-and/70166bbd7f82.mutation.json new file mode 100644 index 00000000..e2601223 --- /dev/null +++ b/corpus/java/bin-op-bit-and/70166bbd7f82.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "BitAnd" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "|" +} \ No newline at end of file diff --git a/corpus/java/bin-op-bit-and/base.java b/corpus/java/bin-op-bit-and/base.java new file mode 100644 index 00000000..1dc80895 --- /dev/null +++ b/corpus/java/bin-op-bit-and/base.java @@ -0,0 +1 @@ +int x = a & b; \ No newline at end of file diff --git a/corpus/java/bin-op-bit-or/38f5d58c2ffe.java b/corpus/java/bin-op-bit-or/38f5d58c2ffe.java new file mode 100644 index 00000000..de7e8e20 --- /dev/null +++ b/corpus/java/bin-op-bit-or/38f5d58c2ffe.java @@ -0,0 +1 @@ +int x = a ^ b; \ No newline at end of file diff --git a/corpus/java/bin-op-bit-or/38f5d58c2ffe.mutation.json b/corpus/java/bin-op-bit-or/38f5d58c2ffe.mutation.json new file mode 100644 index 00000000..112c5f52 --- /dev/null +++ b/corpus/java/bin-op-bit-or/38f5d58c2ffe.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "BitOr" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "^" +} \ No newline at end of file diff --git a/corpus/java/bin-op-bit-or/b567243d001b.java b/corpus/java/bin-op-bit-or/b567243d001b.java new file mode 100644 index 00000000..1dc80895 --- /dev/null +++ b/corpus/java/bin-op-bit-or/b567243d001b.java @@ -0,0 +1 @@ +int x = a & b; \ No newline at end of file diff --git a/corpus/java/bin-op-bit-or/b567243d001b.mutation.json b/corpus/java/bin-op-bit-or/b567243d001b.mutation.json new file mode 100644 index 00000000..4e4f08f6 --- /dev/null +++ b/corpus/java/bin-op-bit-or/b567243d001b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "BitOr" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "&" +} \ No newline at end of file diff --git a/corpus/java/bin-op-bit-or/base.java b/corpus/java/bin-op-bit-or/base.java new file mode 100644 index 00000000..7e75c35e --- /dev/null +++ b/corpus/java/bin-op-bit-or/base.java @@ -0,0 +1 @@ +int x = a | b; \ No newline at end of file diff --git a/corpus/java/bin-op-bit-xor/70166bbd7f82.java b/corpus/java/bin-op-bit-xor/70166bbd7f82.java new file mode 100644 index 00000000..7e75c35e --- /dev/null +++ b/corpus/java/bin-op-bit-xor/70166bbd7f82.java @@ -0,0 +1 @@ +int x = a | b; \ No newline at end of file diff --git a/corpus/java/bin-op-bit-xor/70166bbd7f82.mutation.json b/corpus/java/bin-op-bit-xor/70166bbd7f82.mutation.json new file mode 100644 index 00000000..83dd78dc --- /dev/null +++ b/corpus/java/bin-op-bit-xor/70166bbd7f82.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "BitXor" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "|" +} \ No newline at end of file diff --git a/corpus/java/bin-op-bit-xor/b567243d001b.java b/corpus/java/bin-op-bit-xor/b567243d001b.java new file mode 100644 index 00000000..1dc80895 --- /dev/null +++ b/corpus/java/bin-op-bit-xor/b567243d001b.java @@ -0,0 +1 @@ +int x = a & b; \ No newline at end of file diff --git a/corpus/java/bin-op-bit-xor/b567243d001b.mutation.json b/corpus/java/bin-op-bit-xor/b567243d001b.mutation.json new file mode 100644 index 00000000..6e5c816c --- /dev/null +++ b/corpus/java/bin-op-bit-xor/b567243d001b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "BitXor" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "&" +} \ No newline at end of file diff --git a/corpus/java/bin-op-bit-xor/base.java b/corpus/java/bin-op-bit-xor/base.java new file mode 100644 index 00000000..de7e8e20 --- /dev/null +++ b/corpus/java/bin-op-bit-xor/base.java @@ -0,0 +1 @@ +int x = a ^ b; \ No newline at end of file diff --git a/corpus/java/bin-op-div/9f2b707800fd.java b/corpus/java/bin-op-div/9f2b707800fd.java new file mode 100644 index 00000000..09793e83 --- /dev/null +++ b/corpus/java/bin-op-div/9f2b707800fd.java @@ -0,0 +1 @@ +int x = a * b; \ No newline at end of file diff --git a/corpus/java/bin-op-div/9f2b707800fd.mutation.json b/corpus/java/bin-op-div/9f2b707800fd.mutation.json new file mode 100644 index 00000000..0a4470d7 --- /dev/null +++ b/corpus/java/bin-op-div/9f2b707800fd.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Div" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "*" +} \ No newline at end of file diff --git a/corpus/java/bin-op-div/base.java b/corpus/java/bin-op-div/base.java new file mode 100644 index 00000000..acab57a4 --- /dev/null +++ b/corpus/java/bin-op-div/base.java @@ -0,0 +1 @@ +int x = a / b; \ No newline at end of file diff --git a/corpus/java/bin-op-div/d7f9d93f4ccc.java b/corpus/java/bin-op-div/d7f9d93f4ccc.java new file mode 100644 index 00000000..b33c54f1 --- /dev/null +++ b/corpus/java/bin-op-div/d7f9d93f4ccc.java @@ -0,0 +1 @@ +int x = a - b; \ No newline at end of file diff --git a/corpus/java/bin-op-div/d7f9d93f4ccc.mutation.json b/corpus/java/bin-op-div/d7f9d93f4ccc.mutation.json new file mode 100644 index 00000000..92d3067d --- /dev/null +++ b/corpus/java/bin-op-div/d7f9d93f4ccc.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Div" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "-" +} \ No newline at end of file diff --git a/corpus/java/bin-op-eq/base.java b/corpus/java/bin-op-eq/base.java new file mode 100644 index 00000000..4f3cd443 --- /dev/null +++ b/corpus/java/bin-op-eq/base.java @@ -0,0 +1 @@ +boolean x = a == b; \ No newline at end of file diff --git a/corpus/java/bin-op-eq/f8612a6f5cb9.java b/corpus/java/bin-op-eq/f8612a6f5cb9.java new file mode 100644 index 00000000..c23f7106 --- /dev/null +++ b/corpus/java/bin-op-eq/f8612a6f5cb9.java @@ -0,0 +1 @@ +boolean x = a != b; \ No newline at end of file diff --git a/corpus/java/bin-op-eq/f8612a6f5cb9.mutation.json b/corpus/java/bin-op-eq/f8612a6f5cb9.mutation.json new file mode 100644 index 00000000..ffd9b0cf --- /dev/null +++ b/corpus/java/bin-op-eq/f8612a6f5cb9.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Eq" + }, + "subst_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "!=" +} \ No newline at end of file diff --git a/corpus/java/bin-op-gt/5b23ec285d5f.java b/corpus/java/bin-op-gt/5b23ec285d5f.java new file mode 100644 index 00000000..b179c57d --- /dev/null +++ b/corpus/java/bin-op-gt/5b23ec285d5f.java @@ -0,0 +1 @@ +boolean x = a <= b; \ No newline at end of file diff --git a/corpus/java/bin-op-gt/5b23ec285d5f.mutation.json b/corpus/java/bin-op-gt/5b23ec285d5f.mutation.json new file mode 100644 index 00000000..4825bd98 --- /dev/null +++ b/corpus/java/bin-op-gt/5b23ec285d5f.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Gt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "<=" +} \ No newline at end of file diff --git a/corpus/java/bin-op-gt/80443044b104.java b/corpus/java/bin-op-gt/80443044b104.java new file mode 100644 index 00000000..21c2dcbc --- /dev/null +++ b/corpus/java/bin-op-gt/80443044b104.java @@ -0,0 +1 @@ +boolean x = a >= b; \ No newline at end of file diff --git a/corpus/java/bin-op-gt/80443044b104.mutation.json b/corpus/java/bin-op-gt/80443044b104.mutation.json new file mode 100644 index 00000000..4b40bf8b --- /dev/null +++ b/corpus/java/bin-op-gt/80443044b104.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Gt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": ">=" +} \ No newline at end of file diff --git a/corpus/java/bin-op-gt/base.java b/corpus/java/bin-op-gt/base.java new file mode 100644 index 00000000..770f4cb1 --- /dev/null +++ b/corpus/java/bin-op-gt/base.java @@ -0,0 +1 @@ +boolean x = a > b; \ No newline at end of file diff --git a/corpus/java/bin-op-gte/base.java b/corpus/java/bin-op-gte/base.java new file mode 100644 index 00000000..21c2dcbc --- /dev/null +++ b/corpus/java/bin-op-gte/base.java @@ -0,0 +1 @@ +boolean x = a >= b; \ No newline at end of file diff --git a/corpus/java/bin-op-gte/c27ddb52db00.java b/corpus/java/bin-op-gte/c27ddb52db00.java new file mode 100644 index 00000000..3d0a9c9e --- /dev/null +++ b/corpus/java/bin-op-gte/c27ddb52db00.java @@ -0,0 +1 @@ +boolean x = a < b; \ No newline at end of file diff --git a/corpus/java/bin-op-gte/c27ddb52db00.mutation.json b/corpus/java/bin-op-gte/c27ddb52db00.mutation.json new file mode 100644 index 00000000..571d6d55 --- /dev/null +++ b/corpus/java/bin-op-gte/c27ddb52db00.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Gte" + }, + "subst_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "<" +} \ No newline at end of file diff --git a/corpus/java/bin-op-gte/d2363a5f85bb.java b/corpus/java/bin-op-gte/d2363a5f85bb.java new file mode 100644 index 00000000..770f4cb1 --- /dev/null +++ b/corpus/java/bin-op-gte/d2363a5f85bb.java @@ -0,0 +1 @@ +boolean x = a > b; \ No newline at end of file diff --git a/corpus/java/bin-op-gte/d2363a5f85bb.mutation.json b/corpus/java/bin-op-gte/d2363a5f85bb.mutation.json new file mode 100644 index 00000000..735d7e46 --- /dev/null +++ b/corpus/java/bin-op-gte/d2363a5f85bb.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Gte" + }, + "subst_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": ">" +} \ No newline at end of file diff --git a/corpus/java/bin-op-lt/5b23ec285d5f.java b/corpus/java/bin-op-lt/5b23ec285d5f.java new file mode 100644 index 00000000..b179c57d --- /dev/null +++ b/corpus/java/bin-op-lt/5b23ec285d5f.java @@ -0,0 +1 @@ +boolean x = a <= b; \ No newline at end of file diff --git a/corpus/java/bin-op-lt/5b23ec285d5f.mutation.json b/corpus/java/bin-op-lt/5b23ec285d5f.mutation.json new file mode 100644 index 00000000..6bcea5a6 --- /dev/null +++ b/corpus/java/bin-op-lt/5b23ec285d5f.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Lt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "<=" +} \ No newline at end of file diff --git a/corpus/java/bin-op-lt/80443044b104.java b/corpus/java/bin-op-lt/80443044b104.java new file mode 100644 index 00000000..21c2dcbc --- /dev/null +++ b/corpus/java/bin-op-lt/80443044b104.java @@ -0,0 +1 @@ +boolean x = a >= b; \ No newline at end of file diff --git a/corpus/java/bin-op-lt/80443044b104.mutation.json b/corpus/java/bin-op-lt/80443044b104.mutation.json new file mode 100644 index 00000000..05d411ae --- /dev/null +++ b/corpus/java/bin-op-lt/80443044b104.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Lt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": ">=" +} \ No newline at end of file diff --git a/corpus/java/bin-op-lt/base.java b/corpus/java/bin-op-lt/base.java new file mode 100644 index 00000000..3d0a9c9e --- /dev/null +++ b/corpus/java/bin-op-lt/base.java @@ -0,0 +1 @@ +boolean x = a < b; \ No newline at end of file diff --git a/corpus/java/bin-op-lte/base.java b/corpus/java/bin-op-lte/base.java new file mode 100644 index 00000000..b179c57d --- /dev/null +++ b/corpus/java/bin-op-lte/base.java @@ -0,0 +1 @@ +boolean x = a <= b; \ No newline at end of file diff --git a/corpus/java/bin-op-lte/c27ddb52db00.java b/corpus/java/bin-op-lte/c27ddb52db00.java new file mode 100644 index 00000000..3d0a9c9e --- /dev/null +++ b/corpus/java/bin-op-lte/c27ddb52db00.java @@ -0,0 +1 @@ +boolean x = a < b; \ No newline at end of file diff --git a/corpus/java/bin-op-lte/c27ddb52db00.mutation.json b/corpus/java/bin-op-lte/c27ddb52db00.mutation.json new file mode 100644 index 00000000..b2c96b0e --- /dev/null +++ b/corpus/java/bin-op-lte/c27ddb52db00.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Lte" + }, + "subst_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "<" +} \ No newline at end of file diff --git a/corpus/java/bin-op-lte/d2363a5f85bb.java b/corpus/java/bin-op-lte/d2363a5f85bb.java new file mode 100644 index 00000000..770f4cb1 --- /dev/null +++ b/corpus/java/bin-op-lte/d2363a5f85bb.java @@ -0,0 +1 @@ +boolean x = a > b; \ No newline at end of file diff --git a/corpus/java/bin-op-lte/d2363a5f85bb.mutation.json b/corpus/java/bin-op-lte/d2363a5f85bb.mutation.json new file mode 100644 index 00000000..5c197bec --- /dev/null +++ b/corpus/java/bin-op-lte/d2363a5f85bb.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Lte" + }, + "subst_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": ">" +} \ No newline at end of file diff --git a/corpus/java/bin-op-mul/5365b26943e5.java b/corpus/java/bin-op-mul/5365b26943e5.java new file mode 100644 index 00000000..acab57a4 --- /dev/null +++ b/corpus/java/bin-op-mul/5365b26943e5.java @@ -0,0 +1 @@ +int x = a / b; \ No newline at end of file diff --git a/corpus/java/bin-op-mul/5365b26943e5.mutation.json b/corpus/java/bin-op-mul/5365b26943e5.mutation.json new file mode 100644 index 00000000..301c8859 --- /dev/null +++ b/corpus/java/bin-op-mul/5365b26943e5.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Mul" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "/" +} \ No newline at end of file diff --git a/corpus/java/bin-op-mul/84f64ac93cd0.java b/corpus/java/bin-op-mul/84f64ac93cd0.java new file mode 100644 index 00000000..3080bce8 --- /dev/null +++ b/corpus/java/bin-op-mul/84f64ac93cd0.java @@ -0,0 +1 @@ +int x = a + b; \ No newline at end of file diff --git a/corpus/java/bin-op-mul/84f64ac93cd0.mutation.json b/corpus/java/bin-op-mul/84f64ac93cd0.mutation.json new file mode 100644 index 00000000..c17dca43 --- /dev/null +++ b/corpus/java/bin-op-mul/84f64ac93cd0.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Mul" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "+" +} \ No newline at end of file diff --git a/corpus/java/bin-op-mul/base.java b/corpus/java/bin-op-mul/base.java new file mode 100644 index 00000000..09793e83 --- /dev/null +++ b/corpus/java/bin-op-mul/base.java @@ -0,0 +1 @@ +int x = a * b; \ No newline at end of file diff --git a/corpus/java/bin-op-ne/a4722ce86514.java b/corpus/java/bin-op-ne/a4722ce86514.java new file mode 100644 index 00000000..4f3cd443 --- /dev/null +++ b/corpus/java/bin-op-ne/a4722ce86514.java @@ -0,0 +1 @@ +boolean x = a == b; \ No newline at end of file diff --git a/corpus/java/bin-op-ne/a4722ce86514.mutation.json b/corpus/java/bin-op-ne/a4722ce86514.mutation.json new file mode 100644 index 00000000..31be472e --- /dev/null +++ b/corpus/java/bin-op-ne/a4722ce86514.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Ne" + }, + "subst_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "==" +} \ No newline at end of file diff --git a/corpus/java/bin-op-ne/base.java b/corpus/java/bin-op-ne/base.java new file mode 100644 index 00000000..c23f7106 --- /dev/null +++ b/corpus/java/bin-op-ne/base.java @@ -0,0 +1 @@ +boolean x = a != b; \ No newline at end of file diff --git a/corpus/java/bin-op-or/715c209572eb.java b/corpus/java/bin-op-or/715c209572eb.java new file mode 100644 index 00000000..70a6a6b2 --- /dev/null +++ b/corpus/java/bin-op-or/715c209572eb.java @@ -0,0 +1 @@ +boolean x = a && b; \ No newline at end of file diff --git a/corpus/java/bin-op-or/715c209572eb.mutation.json b/corpus/java/bin-op-or/715c209572eb.mutation.json new file mode 100644 index 00000000..d13dddad --- /dev/null +++ b/corpus/java/bin-op-or/715c209572eb.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Or" + }, + "subst_span": { + "start": { + "line": 0, + "col": 14, + "byte": 14 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "&&" +} \ No newline at end of file diff --git a/corpus/java/bin-op-or/base.java b/corpus/java/bin-op-or/base.java new file mode 100644 index 00000000..f8915ce9 --- /dev/null +++ b/corpus/java/bin-op-or/base.java @@ -0,0 +1 @@ +boolean x = a || b; \ No newline at end of file diff --git a/corpus/java/bin-op-rem/5365b26943e5.java b/corpus/java/bin-op-rem/5365b26943e5.java new file mode 100644 index 00000000..acab57a4 --- /dev/null +++ b/corpus/java/bin-op-rem/5365b26943e5.java @@ -0,0 +1 @@ +int x = a / b; \ No newline at end of file diff --git a/corpus/java/bin-op-rem/5365b26943e5.mutation.json b/corpus/java/bin-op-rem/5365b26943e5.mutation.json new file mode 100644 index 00000000..67df9965 --- /dev/null +++ b/corpus/java/bin-op-rem/5365b26943e5.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Rem" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "/" +} \ No newline at end of file diff --git a/corpus/java/bin-op-rem/9f2b707800fd.java b/corpus/java/bin-op-rem/9f2b707800fd.java new file mode 100644 index 00000000..09793e83 --- /dev/null +++ b/corpus/java/bin-op-rem/9f2b707800fd.java @@ -0,0 +1 @@ +int x = a * b; \ No newline at end of file diff --git a/corpus/java/bin-op-rem/9f2b707800fd.mutation.json b/corpus/java/bin-op-rem/9f2b707800fd.mutation.json new file mode 100644 index 00000000..9c7e5e8a --- /dev/null +++ b/corpus/java/bin-op-rem/9f2b707800fd.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Rem" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "*" +} \ No newline at end of file diff --git a/corpus/java/bin-op-rem/base.java b/corpus/java/bin-op-rem/base.java new file mode 100644 index 00000000..38b20afc --- /dev/null +++ b/corpus/java/bin-op-rem/base.java @@ -0,0 +1 @@ +int x = a % b; \ No newline at end of file diff --git a/corpus/java/bin-op-shl/base.java b/corpus/java/bin-op-shl/base.java new file mode 100644 index 00000000..3ad4dd47 --- /dev/null +++ b/corpus/java/bin-op-shl/base.java @@ -0,0 +1 @@ +int x = a << b; \ No newline at end of file diff --git a/corpus/java/bin-op-shl/fe5dadb73bf6.java b/corpus/java/bin-op-shl/fe5dadb73bf6.java new file mode 100644 index 00000000..ab06c5e8 --- /dev/null +++ b/corpus/java/bin-op-shl/fe5dadb73bf6.java @@ -0,0 +1 @@ +int x = a >> b; \ No newline at end of file diff --git a/corpus/java/bin-op-shl/fe5dadb73bf6.mutation.json b/corpus/java/bin-op-shl/fe5dadb73bf6.mutation.json new file mode 100644 index 00000000..54e5e006 --- /dev/null +++ b/corpus/java/bin-op-shl/fe5dadb73bf6.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Shl" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": ">>" +} \ No newline at end of file diff --git a/corpus/java/bin-op-shr/base.java b/corpus/java/bin-op-shr/base.java new file mode 100644 index 00000000..ab06c5e8 --- /dev/null +++ b/corpus/java/bin-op-shr/base.java @@ -0,0 +1 @@ +int x = a >> b; \ No newline at end of file diff --git a/corpus/java/bin-op-shr/ce059d977f3f.java b/corpus/java/bin-op-shr/ce059d977f3f.java new file mode 100644 index 00000000..3ad4dd47 --- /dev/null +++ b/corpus/java/bin-op-shr/ce059d977f3f.java @@ -0,0 +1 @@ +int x = a << b; \ No newline at end of file diff --git a/corpus/java/bin-op-shr/ce059d977f3f.mutation.json b/corpus/java/bin-op-shr/ce059d977f3f.mutation.json new file mode 100644 index 00000000..0087407e --- /dev/null +++ b/corpus/java/bin-op-shr/ce059d977f3f.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Shr" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "<<" +} \ No newline at end of file diff --git a/corpus/java/bin-op-sub/5365b26943e5.java b/corpus/java/bin-op-sub/5365b26943e5.java new file mode 100644 index 00000000..acab57a4 --- /dev/null +++ b/corpus/java/bin-op-sub/5365b26943e5.java @@ -0,0 +1 @@ +int x = a / b; \ No newline at end of file diff --git a/corpus/java/bin-op-sub/5365b26943e5.mutation.json b/corpus/java/bin-op-sub/5365b26943e5.mutation.json new file mode 100644 index 00000000..6933836f --- /dev/null +++ b/corpus/java/bin-op-sub/5365b26943e5.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Sub" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "/" +} \ No newline at end of file diff --git a/corpus/java/bin-op-sub/84f64ac93cd0.java b/corpus/java/bin-op-sub/84f64ac93cd0.java new file mode 100644 index 00000000..3080bce8 --- /dev/null +++ b/corpus/java/bin-op-sub/84f64ac93cd0.java @@ -0,0 +1 @@ +int x = a + b; \ No newline at end of file diff --git a/corpus/java/bin-op-sub/84f64ac93cd0.mutation.json b/corpus/java/bin-op-sub/84f64ac93cd0.mutation.json new file mode 100644 index 00000000..7e24f7a9 --- /dev/null +++ b/corpus/java/bin-op-sub/84f64ac93cd0.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Sub" + }, + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "+" +} \ No newline at end of file diff --git a/corpus/java/bin-op-sub/base.java b/corpus/java/bin-op-sub/base.java new file mode 100644 index 00000000..b33c54f1 --- /dev/null +++ b/corpus/java/bin-op-sub/base.java @@ -0,0 +1 @@ +int x = a - b; \ No newline at end of file diff --git a/corpus/java/bit-and-assign/3cd018dc1e61.java b/corpus/java/bit-and-assign/3cd018dc1e61.java new file mode 100644 index 00000000..e23a5b96 --- /dev/null +++ b/corpus/java/bit-and-assign/3cd018dc1e61.java @@ -0,0 +1 @@ +x &= 0; \ No newline at end of file diff --git a/corpus/java/bit-and-assign/3cd018dc1e61.mutation.json b/corpus/java/bit-and-assign/3cd018dc1e61.mutation.json new file mode 100644 index 00000000..731460fc --- /dev/null +++ b/corpus/java/bit-and-assign/3cd018dc1e61.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/bit-and-assign/6bfdbad3c48b.java b/corpus/java/bit-and-assign/6bfdbad3c48b.java new file mode 100644 index 00000000..bd905bec --- /dev/null +++ b/corpus/java/bit-and-assign/6bfdbad3c48b.java @@ -0,0 +1 @@ +x &= 1; \ No newline at end of file diff --git a/corpus/java/bit-and-assign/6bfdbad3c48b.mutation.json b/corpus/java/bit-and-assign/6bfdbad3c48b.mutation.json new file mode 100644 index 00000000..e97331ce --- /dev/null +++ b/corpus/java/bit-and-assign/6bfdbad3c48b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/bit-and-assign/79e10b1983fd.java b/corpus/java/bit-and-assign/79e10b1983fd.java new file mode 100644 index 00000000..994aafce --- /dev/null +++ b/corpus/java/bit-and-assign/79e10b1983fd.java @@ -0,0 +1 @@ +x |= 1; \ No newline at end of file diff --git a/corpus/java/bit-and-assign/79e10b1983fd.mutation.json b/corpus/java/bit-and-assign/79e10b1983fd.mutation.json new file mode 100644 index 00000000..dd88cc2a --- /dev/null +++ b/corpus/java/bit-and-assign/79e10b1983fd.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "BitAndAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 4, + "byte": 4 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "|=" +} \ No newline at end of file diff --git a/corpus/java/bit-and-assign/95ebd6ab88fb.java b/corpus/java/bit-and-assign/95ebd6ab88fb.java new file mode 100644 index 00000000..4a872b1d --- /dev/null +++ b/corpus/java/bit-and-assign/95ebd6ab88fb.java @@ -0,0 +1 @@ +x &= -1; \ No newline at end of file diff --git a/corpus/java/bit-and-assign/95ebd6ab88fb.mutation.json b/corpus/java/bit-and-assign/95ebd6ab88fb.mutation.json new file mode 100644 index 00000000..1bb81377 --- /dev/null +++ b/corpus/java/bit-and-assign/95ebd6ab88fb.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/bit-and-assign/base.java b/corpus/java/bit-and-assign/base.java new file mode 100644 index 00000000..bd905bec --- /dev/null +++ b/corpus/java/bit-and-assign/base.java @@ -0,0 +1 @@ +x &= 1; \ No newline at end of file diff --git a/corpus/java/bit-and-assign/d378c09abdab.java b/corpus/java/bit-and-assign/d378c09abdab.java new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/java/bit-and-assign/d378c09abdab.java @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/java/bit-and-assign/d378c09abdab.mutation.json b/corpus/java/bit-and-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..19cc32ad --- /dev/null +++ b/corpus/java/bit-and-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "BitAndAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 4, + "byte": 4 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/java/bit-or-assign/090e4690c09c.java b/corpus/java/bit-or-assign/090e4690c09c.java new file mode 100644 index 00000000..c5ddf4d0 --- /dev/null +++ b/corpus/java/bit-or-assign/090e4690c09c.java @@ -0,0 +1 @@ +x |= -1; \ No newline at end of file diff --git a/corpus/java/bit-or-assign/090e4690c09c.mutation.json b/corpus/java/bit-or-assign/090e4690c09c.mutation.json new file mode 100644 index 00000000..1bb81377 --- /dev/null +++ b/corpus/java/bit-or-assign/090e4690c09c.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/bit-or-assign/20f23a3d4f0a.java b/corpus/java/bit-or-assign/20f23a3d4f0a.java new file mode 100644 index 00000000..c94eab26 --- /dev/null +++ b/corpus/java/bit-or-assign/20f23a3d4f0a.java @@ -0,0 +1 @@ +x |= 0; \ No newline at end of file diff --git a/corpus/java/bit-or-assign/20f23a3d4f0a.mutation.json b/corpus/java/bit-or-assign/20f23a3d4f0a.mutation.json new file mode 100644 index 00000000..731460fc --- /dev/null +++ b/corpus/java/bit-or-assign/20f23a3d4f0a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/bit-or-assign/6bfdbad3c48b.java b/corpus/java/bit-or-assign/6bfdbad3c48b.java new file mode 100644 index 00000000..bd905bec --- /dev/null +++ b/corpus/java/bit-or-assign/6bfdbad3c48b.java @@ -0,0 +1 @@ +x &= 1; \ No newline at end of file diff --git a/corpus/java/bit-or-assign/6bfdbad3c48b.mutation.json b/corpus/java/bit-or-assign/6bfdbad3c48b.mutation.json new file mode 100644 index 00000000..e4586f8c --- /dev/null +++ b/corpus/java/bit-or-assign/6bfdbad3c48b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "BitOrAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 4, + "byte": 4 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "&=" +} \ No newline at end of file diff --git a/corpus/java/bit-or-assign/79e10b1983fd.java b/corpus/java/bit-or-assign/79e10b1983fd.java new file mode 100644 index 00000000..994aafce --- /dev/null +++ b/corpus/java/bit-or-assign/79e10b1983fd.java @@ -0,0 +1 @@ +x |= 1; \ No newline at end of file diff --git a/corpus/java/bit-or-assign/79e10b1983fd.mutation.json b/corpus/java/bit-or-assign/79e10b1983fd.mutation.json new file mode 100644 index 00000000..e97331ce --- /dev/null +++ b/corpus/java/bit-or-assign/79e10b1983fd.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/bit-or-assign/base.java b/corpus/java/bit-or-assign/base.java new file mode 100644 index 00000000..994aafce --- /dev/null +++ b/corpus/java/bit-or-assign/base.java @@ -0,0 +1 @@ +x |= 1; \ No newline at end of file diff --git a/corpus/java/bit-or-assign/d378c09abdab.java b/corpus/java/bit-or-assign/d378c09abdab.java new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/java/bit-or-assign/d378c09abdab.java @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/java/bit-or-assign/d378c09abdab.mutation.json b/corpus/java/bit-or-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..04781348 --- /dev/null +++ b/corpus/java/bit-or-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "BitOrAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 4, + "byte": 4 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/java/bit-xor-assign/0cf073fd5ce5.java b/corpus/java/bit-xor-assign/0cf073fd5ce5.java new file mode 100644 index 00000000..7c90217a --- /dev/null +++ b/corpus/java/bit-xor-assign/0cf073fd5ce5.java @@ -0,0 +1 @@ +x ^= -1; \ No newline at end of file diff --git a/corpus/java/bit-xor-assign/0cf073fd5ce5.mutation.json b/corpus/java/bit-xor-assign/0cf073fd5ce5.mutation.json new file mode 100644 index 00000000..1bb81377 --- /dev/null +++ b/corpus/java/bit-xor-assign/0cf073fd5ce5.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/bit-xor-assign/46ab207a4f4d.java b/corpus/java/bit-xor-assign/46ab207a4f4d.java new file mode 100644 index 00000000..2bb31439 --- /dev/null +++ b/corpus/java/bit-xor-assign/46ab207a4f4d.java @@ -0,0 +1 @@ +x ^= 1; \ No newline at end of file diff --git a/corpus/java/bit-xor-assign/46ab207a4f4d.mutation.json b/corpus/java/bit-xor-assign/46ab207a4f4d.mutation.json new file mode 100644 index 00000000..e97331ce --- /dev/null +++ b/corpus/java/bit-xor-assign/46ab207a4f4d.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/bit-xor-assign/6bfdbad3c48b.java b/corpus/java/bit-xor-assign/6bfdbad3c48b.java new file mode 100644 index 00000000..bd905bec --- /dev/null +++ b/corpus/java/bit-xor-assign/6bfdbad3c48b.java @@ -0,0 +1 @@ +x &= 1; \ No newline at end of file diff --git a/corpus/java/bit-xor-assign/6bfdbad3c48b.mutation.json b/corpus/java/bit-xor-assign/6bfdbad3c48b.mutation.json new file mode 100644 index 00000000..b2c5eb73 --- /dev/null +++ b/corpus/java/bit-xor-assign/6bfdbad3c48b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "BitXorAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 4, + "byte": 4 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "&=" +} \ No newline at end of file diff --git a/corpus/java/bit-xor-assign/base.java b/corpus/java/bit-xor-assign/base.java new file mode 100644 index 00000000..2bb31439 --- /dev/null +++ b/corpus/java/bit-xor-assign/base.java @@ -0,0 +1 @@ +x ^= 1; \ No newline at end of file diff --git a/corpus/java/bit-xor-assign/c00a9f845598.java b/corpus/java/bit-xor-assign/c00a9f845598.java new file mode 100644 index 00000000..4bf709cf --- /dev/null +++ b/corpus/java/bit-xor-assign/c00a9f845598.java @@ -0,0 +1 @@ +x ^= 0; \ No newline at end of file diff --git a/corpus/java/bit-xor-assign/c00a9f845598.mutation.json b/corpus/java/bit-xor-assign/c00a9f845598.mutation.json new file mode 100644 index 00000000..731460fc --- /dev/null +++ b/corpus/java/bit-xor-assign/c00a9f845598.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/bit-xor-assign/d378c09abdab.java b/corpus/java/bit-xor-assign/d378c09abdab.java new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/java/bit-xor-assign/d378c09abdab.java @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/java/bit-xor-assign/d378c09abdab.mutation.json b/corpus/java/bit-xor-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..63490f21 --- /dev/null +++ b/corpus/java/bit-xor-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "BitXorAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 4, + "byte": 4 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/java/condition-for/3ec4fb201f8a.java b/corpus/java/condition-for/3ec4fb201f8a.java new file mode 100644 index 00000000..65fb8746 --- /dev/null +++ b/corpus/java/condition-for/3ec4fb201f8a.java @@ -0,0 +1 @@ +for (int i = 0; i < 10; i++) {} \ No newline at end of file diff --git a/corpus/java/condition-for/3ec4fb201f8a.mutation.json b/corpus/java/condition-for/3ec4fb201f8a.mutation.json new file mode 100644 index 00000000..1fd7e684 --- /dev/null +++ b/corpus/java/condition-for/3ec4fb201f8a.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 29, + "byte": 29 + }, + "end": { + "line": 0, + "col": 37, + "byte": 37 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 29, + "byte": 29 + }, + "end": { + "line": 0, + "col": 37, + "byte": 37 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/java/condition-for/49c3d703f11c.java b/corpus/java/condition-for/49c3d703f11c.java new file mode 100644 index 00000000..9e85c937 --- /dev/null +++ b/corpus/java/condition-for/49c3d703f11c.java @@ -0,0 +1 @@ +for (int i = 1; i < 10; i++) { y(); } \ No newline at end of file diff --git a/corpus/java/condition-for/49c3d703f11c.mutation.json b/corpus/java/condition-for/49c3d703f11c.mutation.json new file mode 100644 index 00000000..982d7f57 --- /dev/null +++ b/corpus/java/condition-for/49c3d703f11c.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/condition-for/5b3b80251420.java b/corpus/java/condition-for/5b3b80251420.java new file mode 100644 index 00000000..e9c0255b --- /dev/null +++ b/corpus/java/condition-for/5b3b80251420.java @@ -0,0 +1 @@ +for (int i = -1; i < 10; i++) { y(); } \ No newline at end of file diff --git a/corpus/java/condition-for/5b3b80251420.mutation.json b/corpus/java/condition-for/5b3b80251420.mutation.json new file mode 100644 index 00000000..94049974 --- /dev/null +++ b/corpus/java/condition-for/5b3b80251420.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/condition-for/63c6fc527527.java b/corpus/java/condition-for/63c6fc527527.java new file mode 100644 index 00000000..d36146f9 --- /dev/null +++ b/corpus/java/condition-for/63c6fc527527.java @@ -0,0 +1 @@ +for (int i = 0; true; i++) { y(); } \ No newline at end of file diff --git a/corpus/java/condition-for/63c6fc527527.mutation.json b/corpus/java/condition-for/63c6fc527527.mutation.json new file mode 100644 index 00000000..81927800 --- /dev/null +++ b/corpus/java/condition-for/63c6fc527527.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": "Condition", + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 22, + "byte": 22 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 37, + "byte": 37 + } + } + }, + "subst": "true" +} \ No newline at end of file diff --git a/corpus/java/condition-for/824f75d53020.java b/corpus/java/condition-for/824f75d53020.java new file mode 100644 index 00000000..ea71ac5c --- /dev/null +++ b/corpus/java/condition-for/824f75d53020.java @@ -0,0 +1 @@ +for (int i = 0; i < -1; i++) { y(); } \ No newline at end of file diff --git a/corpus/java/condition-for/824f75d53020.mutation.json b/corpus/java/condition-for/824f75d53020.mutation.json new file mode 100644 index 00000000..6150f1df --- /dev/null +++ b/corpus/java/condition-for/824f75d53020.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 20, + "byte": 20 + }, + "end": { + "line": 0, + "col": 22, + "byte": 22 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 20, + "byte": 20 + }, + "end": { + "line": 0, + "col": 22, + "byte": 22 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/condition-for/9be6fb2c9634.java b/corpus/java/condition-for/9be6fb2c9634.java new file mode 100644 index 00000000..aad9c076 --- /dev/null +++ b/corpus/java/condition-for/9be6fb2c9634.java @@ -0,0 +1 @@ +for (int i = 0; i >= 10; i++) { y(); } \ No newline at end of file diff --git a/corpus/java/condition-for/9be6fb2c9634.mutation.json b/corpus/java/condition-for/9be6fb2c9634.mutation.json new file mode 100644 index 00000000..0b677236 --- /dev/null +++ b/corpus/java/condition-for/9be6fb2c9634.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Lt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 18, + "byte": 18 + }, + "end": { + "line": 0, + "col": 19, + "byte": 19 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 22, + "byte": 22 + } + } + }, + "subst": ">=" +} \ No newline at end of file diff --git a/corpus/java/condition-for/a50d239602bd.java b/corpus/java/condition-for/a50d239602bd.java new file mode 100644 index 00000000..44a1e3dc --- /dev/null +++ b/corpus/java/condition-for/a50d239602bd.java @@ -0,0 +1 @@ +for (int i = 0; false; i++) { y(); } \ No newline at end of file diff --git a/corpus/java/condition-for/a50d239602bd.mutation.json b/corpus/java/condition-for/a50d239602bd.mutation.json new file mode 100644 index 00000000..404ed2b1 --- /dev/null +++ b/corpus/java/condition-for/a50d239602bd.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": "Condition", + "subst_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 22, + "byte": 22 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 37, + "byte": 37 + } + } + }, + "subst": "false" +} \ No newline at end of file diff --git a/corpus/java/condition-for/b0db648210d3.java b/corpus/java/condition-for/b0db648210d3.java new file mode 100644 index 00000000..efef89cc --- /dev/null +++ b/corpus/java/condition-for/b0db648210d3.java @@ -0,0 +1 @@ +for (int i = 0; i < 10; i++) { y(); } \ No newline at end of file diff --git a/corpus/java/condition-for/b0db648210d3.mutation.json b/corpus/java/condition-for/b0db648210d3.mutation.json new file mode 100644 index 00000000..c50f8d97 --- /dev/null +++ b/corpus/java/condition-for/b0db648210d3.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 13, + "byte": 13 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/condition-for/base.java b/corpus/java/condition-for/base.java new file mode 100644 index 00000000..efef89cc --- /dev/null +++ b/corpus/java/condition-for/base.java @@ -0,0 +1 @@ +for (int i = 0; i < 10; i++) { y(); } \ No newline at end of file diff --git a/corpus/java/condition-for/c33140e3b185.java b/corpus/java/condition-for/c33140e3b185.java new file mode 100644 index 00000000..2c5b73c7 --- /dev/null +++ b/corpus/java/condition-for/c33140e3b185.java @@ -0,0 +1 @@ +for (int i = 0; i < 1; i++) { y(); } \ No newline at end of file diff --git a/corpus/java/condition-for/c33140e3b185.mutation.json b/corpus/java/condition-for/c33140e3b185.mutation.json new file mode 100644 index 00000000..7e3f9931 --- /dev/null +++ b/corpus/java/condition-for/c33140e3b185.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 20, + "byte": 20 + }, + "end": { + "line": 0, + "col": 22, + "byte": 22 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 20, + "byte": 20 + }, + "end": { + "line": 0, + "col": 22, + "byte": 22 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/condition-for/cd1490c33e58.java b/corpus/java/condition-for/cd1490c33e58.java new file mode 100644 index 00000000..08ffbb11 --- /dev/null +++ b/corpus/java/condition-for/cd1490c33e58.java @@ -0,0 +1 @@ +for (int i = 0; i < 0; i++) { y(); } \ No newline at end of file diff --git a/corpus/java/condition-for/cd1490c33e58.mutation.json b/corpus/java/condition-for/cd1490c33e58.mutation.json new file mode 100644 index 00000000..979b0be4 --- /dev/null +++ b/corpus/java/condition-for/cd1490c33e58.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 20, + "byte": 20 + }, + "end": { + "line": 0, + "col": 22, + "byte": 22 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 20, + "byte": 20 + }, + "end": { + "line": 0, + "col": 22, + "byte": 22 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/condition-for/e9bfa08ab473.java b/corpus/java/condition-for/e9bfa08ab473.java new file mode 100644 index 00000000..a8a44097 --- /dev/null +++ b/corpus/java/condition-for/e9bfa08ab473.java @@ -0,0 +1 @@ +for (int i = 0; i <= 10; i++) { y(); } \ No newline at end of file diff --git a/corpus/java/condition-for/e9bfa08ab473.mutation.json b/corpus/java/condition-for/e9bfa08ab473.mutation.json new file mode 100644 index 00000000..e974d41e --- /dev/null +++ b/corpus/java/condition-for/e9bfa08ab473.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "BinaryOp": "Lt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 18, + "byte": 18 + }, + "end": { + "line": 0, + "col": 19, + "byte": 19 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 16, + "byte": 16 + }, + "end": { + "line": 0, + "col": 22, + "byte": 22 + } + } + }, + "subst": "<=" +} \ No newline at end of file diff --git a/corpus/java/condition-while/2144d91c129c.java b/corpus/java/condition-while/2144d91c129c.java new file mode 100644 index 00000000..08d2722e --- /dev/null +++ b/corpus/java/condition-while/2144d91c129c.java @@ -0,0 +1 @@ +while (false) { y(); } \ No newline at end of file diff --git a/corpus/java/condition-while/2144d91c129c.mutation.json b/corpus/java/condition-while/2144d91c129c.mutation.json new file mode 100644 index 00000000..d0661ca3 --- /dev/null +++ b/corpus/java/condition-while/2144d91c129c.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": "Condition", + "subst_span": { + "start": { + "line": 0, + "col": 7, + "byte": 7 + }, + "end": { + "line": 0, + "col": 8, + "byte": 8 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "false" +} \ No newline at end of file diff --git a/corpus/java/condition-while/50a05a428bd0.java b/corpus/java/condition-while/50a05a428bd0.java new file mode 100644 index 00000000..a7ab167b --- /dev/null +++ b/corpus/java/condition-while/50a05a428bd0.java @@ -0,0 +1 @@ +while (x) {} \ No newline at end of file diff --git a/corpus/java/condition-while/50a05a428bd0.mutation.json b/corpus/java/condition-while/50a05a428bd0.mutation.json new file mode 100644 index 00000000..bf8f8251 --- /dev/null +++ b/corpus/java/condition-while/50a05a428bd0.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 10, + "byte": 10 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/java/condition-while/base.java b/corpus/java/condition-while/base.java new file mode 100644 index 00000000..38af9368 --- /dev/null +++ b/corpus/java/condition-while/base.java @@ -0,0 +1 @@ +while (x) { y(); } \ No newline at end of file diff --git a/corpus/java/condition-while/f21165ed31f3.java b/corpus/java/condition-while/f21165ed31f3.java new file mode 100644 index 00000000..7af01761 --- /dev/null +++ b/corpus/java/condition-while/f21165ed31f3.java @@ -0,0 +1 @@ +while (true) { y(); } \ No newline at end of file diff --git a/corpus/java/condition-while/f21165ed31f3.mutation.json b/corpus/java/condition-while/f21165ed31f3.mutation.json new file mode 100644 index 00000000..7dd92fa0 --- /dev/null +++ b/corpus/java/condition-while/f21165ed31f3.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": "Condition", + "subst_span": { + "start": { + "line": 0, + "col": 7, + "byte": 7 + }, + "end": { + "line": 0, + "col": 8, + "byte": 8 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "true" +} \ No newline at end of file diff --git a/corpus/java/condition/39e6765d773f.java b/corpus/java/condition/39e6765d773f.java new file mode 100644 index 00000000..cd328cc1 --- /dev/null +++ b/corpus/java/condition/39e6765d773f.java @@ -0,0 +1 @@ +if (x) {} \ No newline at end of file diff --git a/corpus/java/condition/39e6765d773f.mutation.json b/corpus/java/condition/39e6765d773f.mutation.json new file mode 100644 index 00000000..101cb651 --- /dev/null +++ b/corpus/java/condition/39e6765d773f.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 7, + "byte": 7 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 7, + "byte": 7 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/java/condition/b492841e1c24.java b/corpus/java/condition/b492841e1c24.java new file mode 100644 index 00000000..d667a26e --- /dev/null +++ b/corpus/java/condition/b492841e1c24.java @@ -0,0 +1 @@ +if (false) { y(); } \ No newline at end of file diff --git a/corpus/java/condition/b492841e1c24.mutation.json b/corpus/java/condition/b492841e1c24.mutation.json new file mode 100644 index 00000000..b9f9ce88 --- /dev/null +++ b/corpus/java/condition/b492841e1c24.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": "Condition", + "subst_span": { + "start": { + "line": 0, + "col": 4, + "byte": 4 + }, + "end": { + "line": 0, + "col": 5, + "byte": 5 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + } + }, + "subst": "false" +} \ No newline at end of file diff --git a/corpus/java/condition/base.java b/corpus/java/condition/base.java new file mode 100644 index 00000000..585e3f31 --- /dev/null +++ b/corpus/java/condition/base.java @@ -0,0 +1 @@ +if (x) { y(); } \ No newline at end of file diff --git a/corpus/java/condition/cae10f0911a4.java b/corpus/java/condition/cae10f0911a4.java new file mode 100644 index 00000000..26acc839 --- /dev/null +++ b/corpus/java/condition/cae10f0911a4.java @@ -0,0 +1 @@ +if (true) { y(); } \ No newline at end of file diff --git a/corpus/java/condition/cae10f0911a4.mutation.json b/corpus/java/condition/cae10f0911a4.mutation.json new file mode 100644 index 00000000..54e39e71 --- /dev/null +++ b/corpus/java/condition/cae10f0911a4.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": "Condition", + "subst_span": { + "start": { + "line": 0, + "col": 4, + "byte": 4 + }, + "end": { + "line": 0, + "col": 5, + "byte": 5 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + } + }, + "subst": "true" +} \ No newline at end of file diff --git a/corpus/java/div-assign/15757d35f9f4.java b/corpus/java/div-assign/15757d35f9f4.java new file mode 100644 index 00000000..8c7f4251 --- /dev/null +++ b/corpus/java/div-assign/15757d35f9f4.java @@ -0,0 +1 @@ +x /= -1; \ No newline at end of file diff --git a/corpus/java/div-assign/15757d35f9f4.mutation.json b/corpus/java/div-assign/15757d35f9f4.mutation.json new file mode 100644 index 00000000..1bb81377 --- /dev/null +++ b/corpus/java/div-assign/15757d35f9f4.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/div-assign/18d429e2f216.java b/corpus/java/div-assign/18d429e2f216.java new file mode 100644 index 00000000..9417ead5 --- /dev/null +++ b/corpus/java/div-assign/18d429e2f216.java @@ -0,0 +1 @@ +x /= 1; \ No newline at end of file diff --git a/corpus/java/div-assign/18d429e2f216.mutation.json b/corpus/java/div-assign/18d429e2f216.mutation.json new file mode 100644 index 00000000..e97331ce --- /dev/null +++ b/corpus/java/div-assign/18d429e2f216.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/div-assign/44d95a347513.java b/corpus/java/div-assign/44d95a347513.java new file mode 100644 index 00000000..1e2186f7 --- /dev/null +++ b/corpus/java/div-assign/44d95a347513.java @@ -0,0 +1 @@ +x *= 1; \ No newline at end of file diff --git a/corpus/java/div-assign/44d95a347513.mutation.json b/corpus/java/div-assign/44d95a347513.mutation.json new file mode 100644 index 00000000..1c1f444d --- /dev/null +++ b/corpus/java/div-assign/44d95a347513.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "DivAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 4, + "byte": 4 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "*=" +} \ No newline at end of file diff --git a/corpus/java/div-assign/base.java b/corpus/java/div-assign/base.java new file mode 100644 index 00000000..9417ead5 --- /dev/null +++ b/corpus/java/div-assign/base.java @@ -0,0 +1 @@ +x /= 1; \ No newline at end of file diff --git a/corpus/java/div-assign/d378c09abdab.java b/corpus/java/div-assign/d378c09abdab.java new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/java/div-assign/d378c09abdab.java @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/java/div-assign/d378c09abdab.mutation.json b/corpus/java/div-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..127e515f --- /dev/null +++ b/corpus/java/div-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "DivAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 4, + "byte": 4 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/java/div-assign/f29a38c83a2b.java b/corpus/java/div-assign/f29a38c83a2b.java new file mode 100644 index 00000000..1d1b78ae --- /dev/null +++ b/corpus/java/div-assign/f29a38c83a2b.java @@ -0,0 +1 @@ +x /= 0; \ No newline at end of file diff --git a/corpus/java/div-assign/f29a38c83a2b.mutation.json b/corpus/java/div-assign/f29a38c83a2b.mutation.json new file mode 100644 index 00000000..731460fc --- /dev/null +++ b/corpus/java/div-assign/f29a38c83a2b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/literal-bool-false/0e66501388b6.java b/corpus/java/literal-bool-false/0e66501388b6.java new file mode 100644 index 00000000..1896d75e --- /dev/null +++ b/corpus/java/literal-bool-false/0e66501388b6.java @@ -0,0 +1 @@ +boolean x = true; \ No newline at end of file diff --git a/corpus/java/literal-bool-false/0e66501388b6.mutation.json b/corpus/java/literal-bool-false/0e66501388b6.mutation.json new file mode 100644 index 00000000..82212fe2 --- /dev/null +++ b/corpus/java/literal-bool-false/0e66501388b6.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "BoolFalse" + }, + "subst_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 17, + "byte": 17 + } + } + }, + "subst": "true" +} \ No newline at end of file diff --git a/corpus/java/literal-bool-false/base.java b/corpus/java/literal-bool-false/base.java new file mode 100644 index 00000000..94e73ec9 --- /dev/null +++ b/corpus/java/literal-bool-false/base.java @@ -0,0 +1 @@ +boolean x = false; \ No newline at end of file diff --git a/corpus/java/literal-bool-true/base.java b/corpus/java/literal-bool-true/base.java new file mode 100644 index 00000000..1896d75e --- /dev/null +++ b/corpus/java/literal-bool-true/base.java @@ -0,0 +1 @@ +boolean x = true; \ No newline at end of file diff --git a/corpus/java/literal-bool-true/c1da75801712.java b/corpus/java/literal-bool-true/c1da75801712.java new file mode 100644 index 00000000..94e73ec9 --- /dev/null +++ b/corpus/java/literal-bool-true/c1da75801712.java @@ -0,0 +1 @@ +boolean x = false; \ No newline at end of file diff --git a/corpus/java/literal-bool-true/c1da75801712.mutation.json b/corpus/java/literal-bool-true/c1da75801712.mutation.json new file mode 100644 index 00000000..f92f36b3 --- /dev/null +++ b/corpus/java/literal-bool-true/c1da75801712.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "BoolTrue" + }, + "subst_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 16, + "byte": 16 + } + } + }, + "subst": "false" +} \ No newline at end of file diff --git a/corpus/java/literal-number/2e395b9629e9.java b/corpus/java/literal-number/2e395b9629e9.java new file mode 100644 index 00000000..a3a8be20 --- /dev/null +++ b/corpus/java/literal-number/2e395b9629e9.java @@ -0,0 +1 @@ +int x = -1; \ No newline at end of file diff --git a/corpus/java/literal-number/2e395b9629e9.mutation.json b/corpus/java/literal-number/2e395b9629e9.mutation.json new file mode 100644 index 00000000..e0edf762 --- /dev/null +++ b/corpus/java/literal-number/2e395b9629e9.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 10, + "byte": 10 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 10, + "byte": 10 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/literal-number/5717848e538a.java b/corpus/java/literal-number/5717848e538a.java new file mode 100644 index 00000000..00e4b224 --- /dev/null +++ b/corpus/java/literal-number/5717848e538a.java @@ -0,0 +1 @@ +int x = 0; \ No newline at end of file diff --git a/corpus/java/literal-number/5717848e538a.mutation.json b/corpus/java/literal-number/5717848e538a.mutation.json new file mode 100644 index 00000000..b9d5527e --- /dev/null +++ b/corpus/java/literal-number/5717848e538a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 10, + "byte": 10 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 10, + "byte": 10 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/literal-number/b1b0343cdc33.java b/corpus/java/literal-number/b1b0343cdc33.java new file mode 100644 index 00000000..e55685cf --- /dev/null +++ b/corpus/java/literal-number/b1b0343cdc33.java @@ -0,0 +1 @@ +int x = 1; \ No newline at end of file diff --git a/corpus/java/literal-number/b1b0343cdc33.mutation.json b/corpus/java/literal-number/b1b0343cdc33.mutation.json new file mode 100644 index 00000000..cae354c4 --- /dev/null +++ b/corpus/java/literal-number/b1b0343cdc33.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 10, + "byte": 10 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 8, + "byte": 8 + }, + "end": { + "line": 0, + "col": 10, + "byte": 10 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/literal-number/base.java b/corpus/java/literal-number/base.java new file mode 100644 index 00000000..bcb80945 --- /dev/null +++ b/corpus/java/literal-number/base.java @@ -0,0 +1 @@ +int x = 42; \ No newline at end of file diff --git a/corpus/java/literal-string-empty/base.java b/corpus/java/literal-string-empty/base.java new file mode 100644 index 00000000..84f799f3 --- /dev/null +++ b/corpus/java/literal-string-empty/base.java @@ -0,0 +1 @@ +String x = ""; \ No newline at end of file diff --git a/corpus/java/literal-string-empty/e524f0b6813a.java b/corpus/java/literal-string-empty/e524f0b6813a.java new file mode 100644 index 00000000..bcd64dc5 --- /dev/null +++ b/corpus/java/literal-string-empty/e524f0b6813a.java @@ -0,0 +1 @@ +String x = "bough"; \ No newline at end of file diff --git a/corpus/java/literal-string-empty/e524f0b6813a.mutation.json b/corpus/java/literal-string-empty/e524f0b6813a.mutation.json new file mode 100644 index 00000000..c54e4921 --- /dev/null +++ b/corpus/java/literal-string-empty/e524f0b6813a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "EmptyString" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "\"bough\"" +} \ No newline at end of file diff --git a/corpus/java/literal-string/39329ac13339.java b/corpus/java/literal-string/39329ac13339.java new file mode 100644 index 00000000..84f799f3 --- /dev/null +++ b/corpus/java/literal-string/39329ac13339.java @@ -0,0 +1 @@ +String x = ""; \ No newline at end of file diff --git a/corpus/java/literal-string/39329ac13339.mutation.json b/corpus/java/literal-string/39329ac13339.mutation.json new file mode 100644 index 00000000..0f04526b --- /dev/null +++ b/corpus/java/literal-string/39329ac13339.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "String" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 18, + "byte": 18 + } + } + }, + "subst": "\"\"" +} \ No newline at end of file diff --git a/corpus/java/literal-string/base.java b/corpus/java/literal-string/base.java new file mode 100644 index 00000000..0361a33a --- /dev/null +++ b/corpus/java/literal-string/base.java @@ -0,0 +1 @@ +String x = "hello"; \ No newline at end of file diff --git a/corpus/java/mul-assign/18d429e2f216.java b/corpus/java/mul-assign/18d429e2f216.java new file mode 100644 index 00000000..9417ead5 --- /dev/null +++ b/corpus/java/mul-assign/18d429e2f216.java @@ -0,0 +1 @@ +x /= 1; \ No newline at end of file diff --git a/corpus/java/mul-assign/18d429e2f216.mutation.json b/corpus/java/mul-assign/18d429e2f216.mutation.json new file mode 100644 index 00000000..4c63e86e --- /dev/null +++ b/corpus/java/mul-assign/18d429e2f216.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "MulAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 4, + "byte": 4 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "/=" +} \ No newline at end of file diff --git a/corpus/java/mul-assign/44d95a347513.java b/corpus/java/mul-assign/44d95a347513.java new file mode 100644 index 00000000..1e2186f7 --- /dev/null +++ b/corpus/java/mul-assign/44d95a347513.java @@ -0,0 +1 @@ +x *= 1; \ No newline at end of file diff --git a/corpus/java/mul-assign/44d95a347513.mutation.json b/corpus/java/mul-assign/44d95a347513.mutation.json new file mode 100644 index 00000000..e97331ce --- /dev/null +++ b/corpus/java/mul-assign/44d95a347513.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/mul-assign/5c981c1aa09d.java b/corpus/java/mul-assign/5c981c1aa09d.java new file mode 100644 index 00000000..89207042 --- /dev/null +++ b/corpus/java/mul-assign/5c981c1aa09d.java @@ -0,0 +1 @@ +x *= 0; \ No newline at end of file diff --git a/corpus/java/mul-assign/5c981c1aa09d.mutation.json b/corpus/java/mul-assign/5c981c1aa09d.mutation.json new file mode 100644 index 00000000..731460fc --- /dev/null +++ b/corpus/java/mul-assign/5c981c1aa09d.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/mul-assign/base.java b/corpus/java/mul-assign/base.java new file mode 100644 index 00000000..1e2186f7 --- /dev/null +++ b/corpus/java/mul-assign/base.java @@ -0,0 +1 @@ +x *= 1; \ No newline at end of file diff --git a/corpus/java/mul-assign/d378c09abdab.java b/corpus/java/mul-assign/d378c09abdab.java new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/java/mul-assign/d378c09abdab.java @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/java/mul-assign/d378c09abdab.mutation.json b/corpus/java/mul-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..5aebac62 --- /dev/null +++ b/corpus/java/mul-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "MulAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 4, + "byte": 4 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/java/mul-assign/efeed56b88b6.java b/corpus/java/mul-assign/efeed56b88b6.java new file mode 100644 index 00000000..682be401 --- /dev/null +++ b/corpus/java/mul-assign/efeed56b88b6.java @@ -0,0 +1 @@ +x *= -1; \ No newline at end of file diff --git a/corpus/java/mul-assign/efeed56b88b6.mutation.json b/corpus/java/mul-assign/efeed56b88b6.mutation.json new file mode 100644 index 00000000..1bb81377 --- /dev/null +++ b/corpus/java/mul-assign/efeed56b88b6.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/normal-assign/555ab882b770.java b/corpus/java/normal-assign/555ab882b770.java new file mode 100644 index 00000000..4aafedbe --- /dev/null +++ b/corpus/java/normal-assign/555ab882b770.java @@ -0,0 +1 @@ +x = -1; \ No newline at end of file diff --git a/corpus/java/normal-assign/555ab882b770.mutation.json b/corpus/java/normal-assign/555ab882b770.mutation.json new file mode 100644 index 00000000..a4d1891b --- /dev/null +++ b/corpus/java/normal-assign/555ab882b770.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 4, + "byte": 4 + }, + "end": { + "line": 0, + "col": 5, + "byte": 5 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 4, + "byte": 4 + }, + "end": { + "line": 0, + "col": 5, + "byte": 5 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/normal-assign/8cc605a5e77e.java b/corpus/java/normal-assign/8cc605a5e77e.java new file mode 100644 index 00000000..97375eae --- /dev/null +++ b/corpus/java/normal-assign/8cc605a5e77e.java @@ -0,0 +1 @@ +x -= 1; \ No newline at end of file diff --git a/corpus/java/normal-assign/8cc605a5e77e.mutation.json b/corpus/java/normal-assign/8cc605a5e77e.mutation.json new file mode 100644 index 00000000..544a9481 --- /dev/null +++ b/corpus/java/normal-assign/8cc605a5e77e.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "NormalAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 3, + "byte": 3 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 5, + "byte": 5 + } + } + }, + "subst": "-=" +} \ No newline at end of file diff --git a/corpus/java/normal-assign/9a32551472c0.java b/corpus/java/normal-assign/9a32551472c0.java new file mode 100644 index 00000000..5ec612db --- /dev/null +++ b/corpus/java/normal-assign/9a32551472c0.java @@ -0,0 +1 @@ +x = 0; \ No newline at end of file diff --git a/corpus/java/normal-assign/9a32551472c0.mutation.json b/corpus/java/normal-assign/9a32551472c0.mutation.json new file mode 100644 index 00000000..3dbbf8a1 --- /dev/null +++ b/corpus/java/normal-assign/9a32551472c0.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 4, + "byte": 4 + }, + "end": { + "line": 0, + "col": 5, + "byte": 5 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 4, + "byte": 4 + }, + "end": { + "line": 0, + "col": 5, + "byte": 5 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/normal-assign/base.java b/corpus/java/normal-assign/base.java new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/java/normal-assign/base.java @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/java/normal-assign/d378c09abdab.java b/corpus/java/normal-assign/d378c09abdab.java new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/java/normal-assign/d378c09abdab.java @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/java/normal-assign/d378c09abdab.mutation.json b/corpus/java/normal-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..9ce78db8 --- /dev/null +++ b/corpus/java/normal-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 4, + "byte": 4 + }, + "end": { + "line": 0, + "col": 5, + "byte": 5 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 4, + "byte": 4 + }, + "end": { + "line": 0, + "col": 5, + "byte": 5 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/normal-assign/fdbf18e39a1b.java b/corpus/java/normal-assign/fdbf18e39a1b.java new file mode 100644 index 00000000..c2a8ba18 --- /dev/null +++ b/corpus/java/normal-assign/fdbf18e39a1b.java @@ -0,0 +1 @@ +x += 1; \ No newline at end of file diff --git a/corpus/java/normal-assign/fdbf18e39a1b.mutation.json b/corpus/java/normal-assign/fdbf18e39a1b.mutation.json new file mode 100644 index 00000000..13a236db --- /dev/null +++ b/corpus/java/normal-assign/fdbf18e39a1b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "NormalAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 3, + "byte": 3 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 5, + "byte": 5 + } + } + }, + "subst": "+=" +} \ No newline at end of file diff --git a/corpus/java/rem-assign/0ec8435f4989.java b/corpus/java/rem-assign/0ec8435f4989.java new file mode 100644 index 00000000..395bb864 --- /dev/null +++ b/corpus/java/rem-assign/0ec8435f4989.java @@ -0,0 +1 @@ +x %= -1; \ No newline at end of file diff --git a/corpus/java/rem-assign/0ec8435f4989.mutation.json b/corpus/java/rem-assign/0ec8435f4989.mutation.json new file mode 100644 index 00000000..1bb81377 --- /dev/null +++ b/corpus/java/rem-assign/0ec8435f4989.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/rem-assign/1cf6ffd73c70.java b/corpus/java/rem-assign/1cf6ffd73c70.java new file mode 100644 index 00000000..3b3e27b9 --- /dev/null +++ b/corpus/java/rem-assign/1cf6ffd73c70.java @@ -0,0 +1 @@ +x %= 1; \ No newline at end of file diff --git a/corpus/java/rem-assign/1cf6ffd73c70.mutation.json b/corpus/java/rem-assign/1cf6ffd73c70.mutation.json new file mode 100644 index 00000000..e97331ce --- /dev/null +++ b/corpus/java/rem-assign/1cf6ffd73c70.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/rem-assign/44d95a347513.java b/corpus/java/rem-assign/44d95a347513.java new file mode 100644 index 00000000..1e2186f7 --- /dev/null +++ b/corpus/java/rem-assign/44d95a347513.java @@ -0,0 +1 @@ +x *= 1; \ No newline at end of file diff --git a/corpus/java/rem-assign/44d95a347513.mutation.json b/corpus/java/rem-assign/44d95a347513.mutation.json new file mode 100644 index 00000000..20d40f88 --- /dev/null +++ b/corpus/java/rem-assign/44d95a347513.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "RemAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 4, + "byte": 4 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "*=" +} \ No newline at end of file diff --git a/corpus/java/rem-assign/abbe4db95f9c.java b/corpus/java/rem-assign/abbe4db95f9c.java new file mode 100644 index 00000000..1d24f929 --- /dev/null +++ b/corpus/java/rem-assign/abbe4db95f9c.java @@ -0,0 +1 @@ +x %= 0; \ No newline at end of file diff --git a/corpus/java/rem-assign/abbe4db95f9c.mutation.json b/corpus/java/rem-assign/abbe4db95f9c.mutation.json new file mode 100644 index 00000000..731460fc --- /dev/null +++ b/corpus/java/rem-assign/abbe4db95f9c.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/rem-assign/base.java b/corpus/java/rem-assign/base.java new file mode 100644 index 00000000..3b3e27b9 --- /dev/null +++ b/corpus/java/rem-assign/base.java @@ -0,0 +1 @@ +x %= 1; \ No newline at end of file diff --git a/corpus/java/rem-assign/d378c09abdab.java b/corpus/java/rem-assign/d378c09abdab.java new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/java/rem-assign/d378c09abdab.java @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/java/rem-assign/d378c09abdab.mutation.json b/corpus/java/rem-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..0c52512f --- /dev/null +++ b/corpus/java/rem-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "RemAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 4, + "byte": 4 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/java/shl-assign/6e3f25f10733.java b/corpus/java/shl-assign/6e3f25f10733.java new file mode 100644 index 00000000..ef532bb6 --- /dev/null +++ b/corpus/java/shl-assign/6e3f25f10733.java @@ -0,0 +1 @@ +x <<= -1; \ No newline at end of file diff --git a/corpus/java/shl-assign/6e3f25f10733.mutation.json b/corpus/java/shl-assign/6e3f25f10733.mutation.json new file mode 100644 index 00000000..c3861b47 --- /dev/null +++ b/corpus/java/shl-assign/6e3f25f10733.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 6, + "byte": 6 + }, + "end": { + "line": 0, + "col": 7, + "byte": 7 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 6, + "byte": 6 + }, + "end": { + "line": 0, + "col": 7, + "byte": 7 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/shl-assign/7ca5b4d2bdb5.java b/corpus/java/shl-assign/7ca5b4d2bdb5.java new file mode 100644 index 00000000..35e8bb24 --- /dev/null +++ b/corpus/java/shl-assign/7ca5b4d2bdb5.java @@ -0,0 +1 @@ +x >>= 1; \ No newline at end of file diff --git a/corpus/java/shl-assign/7ca5b4d2bdb5.mutation.json b/corpus/java/shl-assign/7ca5b4d2bdb5.mutation.json new file mode 100644 index 00000000..4475ebc9 --- /dev/null +++ b/corpus/java/shl-assign/7ca5b4d2bdb5.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "ShlAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 5, + "byte": 5 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 7, + "byte": 7 + } + } + }, + "subst": ">>=" +} \ No newline at end of file diff --git a/corpus/java/shl-assign/base.java b/corpus/java/shl-assign/base.java new file mode 100644 index 00000000..e41e2fa5 --- /dev/null +++ b/corpus/java/shl-assign/base.java @@ -0,0 +1 @@ +x <<= 1; \ No newline at end of file diff --git a/corpus/java/shl-assign/d378c09abdab.java b/corpus/java/shl-assign/d378c09abdab.java new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/java/shl-assign/d378c09abdab.java @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/java/shl-assign/d378c09abdab.mutation.json b/corpus/java/shl-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..249fd857 --- /dev/null +++ b/corpus/java/shl-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "ShlAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 5, + "byte": 5 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 7, + "byte": 7 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/java/shl-assign/f5e96ff63e7f.java b/corpus/java/shl-assign/f5e96ff63e7f.java new file mode 100644 index 00000000..149d5cc6 --- /dev/null +++ b/corpus/java/shl-assign/f5e96ff63e7f.java @@ -0,0 +1 @@ +x <<= 0; \ No newline at end of file diff --git a/corpus/java/shl-assign/f5e96ff63e7f.mutation.json b/corpus/java/shl-assign/f5e96ff63e7f.mutation.json new file mode 100644 index 00000000..5398064c --- /dev/null +++ b/corpus/java/shl-assign/f5e96ff63e7f.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 6, + "byte": 6 + }, + "end": { + "line": 0, + "col": 7, + "byte": 7 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 6, + "byte": 6 + }, + "end": { + "line": 0, + "col": 7, + "byte": 7 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/shl-assign/fdb2bd299d83.java b/corpus/java/shl-assign/fdb2bd299d83.java new file mode 100644 index 00000000..e41e2fa5 --- /dev/null +++ b/corpus/java/shl-assign/fdb2bd299d83.java @@ -0,0 +1 @@ +x <<= 1; \ No newline at end of file diff --git a/corpus/java/shl-assign/fdb2bd299d83.mutation.json b/corpus/java/shl-assign/fdb2bd299d83.mutation.json new file mode 100644 index 00000000..d12ba38a --- /dev/null +++ b/corpus/java/shl-assign/fdb2bd299d83.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 6, + "byte": 6 + }, + "end": { + "line": 0, + "col": 7, + "byte": 7 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 6, + "byte": 6 + }, + "end": { + "line": 0, + "col": 7, + "byte": 7 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/shr-assign/01152fd7c814.java b/corpus/java/shr-assign/01152fd7c814.java new file mode 100644 index 00000000..cad286e7 --- /dev/null +++ b/corpus/java/shr-assign/01152fd7c814.java @@ -0,0 +1 @@ +x >>= -1; \ No newline at end of file diff --git a/corpus/java/shr-assign/01152fd7c814.mutation.json b/corpus/java/shr-assign/01152fd7c814.mutation.json new file mode 100644 index 00000000..c3861b47 --- /dev/null +++ b/corpus/java/shr-assign/01152fd7c814.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 6, + "byte": 6 + }, + "end": { + "line": 0, + "col": 7, + "byte": 7 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 6, + "byte": 6 + }, + "end": { + "line": 0, + "col": 7, + "byte": 7 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/shr-assign/7ca5b4d2bdb5.java b/corpus/java/shr-assign/7ca5b4d2bdb5.java new file mode 100644 index 00000000..35e8bb24 --- /dev/null +++ b/corpus/java/shr-assign/7ca5b4d2bdb5.java @@ -0,0 +1 @@ +x >>= 1; \ No newline at end of file diff --git a/corpus/java/shr-assign/7ca5b4d2bdb5.mutation.json b/corpus/java/shr-assign/7ca5b4d2bdb5.mutation.json new file mode 100644 index 00000000..d12ba38a --- /dev/null +++ b/corpus/java/shr-assign/7ca5b4d2bdb5.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 6, + "byte": 6 + }, + "end": { + "line": 0, + "col": 7, + "byte": 7 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 6, + "byte": 6 + }, + "end": { + "line": 0, + "col": 7, + "byte": 7 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/shr-assign/base.java b/corpus/java/shr-assign/base.java new file mode 100644 index 00000000..35e8bb24 --- /dev/null +++ b/corpus/java/shr-assign/base.java @@ -0,0 +1 @@ +x >>= 1; \ No newline at end of file diff --git a/corpus/java/shr-assign/d378c09abdab.java b/corpus/java/shr-assign/d378c09abdab.java new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/java/shr-assign/d378c09abdab.java @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/java/shr-assign/d378c09abdab.mutation.json b/corpus/java/shr-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..416ec8fa --- /dev/null +++ b/corpus/java/shr-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "ShrAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 5, + "byte": 5 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 7, + "byte": 7 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/java/shr-assign/d9f3a5614b7f.java b/corpus/java/shr-assign/d9f3a5614b7f.java new file mode 100644 index 00000000..b75a917d --- /dev/null +++ b/corpus/java/shr-assign/d9f3a5614b7f.java @@ -0,0 +1 @@ +x >>= 0; \ No newline at end of file diff --git a/corpus/java/shr-assign/d9f3a5614b7f.mutation.json b/corpus/java/shr-assign/d9f3a5614b7f.mutation.json new file mode 100644 index 00000000..5398064c --- /dev/null +++ b/corpus/java/shr-assign/d9f3a5614b7f.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 6, + "byte": 6 + }, + "end": { + "line": 0, + "col": 7, + "byte": 7 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 6, + "byte": 6 + }, + "end": { + "line": 0, + "col": 7, + "byte": 7 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/shr-assign/fdb2bd299d83.java b/corpus/java/shr-assign/fdb2bd299d83.java new file mode 100644 index 00000000..e41e2fa5 --- /dev/null +++ b/corpus/java/shr-assign/fdb2bd299d83.java @@ -0,0 +1 @@ +x <<= 1; \ No newline at end of file diff --git a/corpus/java/shr-assign/fdb2bd299d83.mutation.json b/corpus/java/shr-assign/fdb2bd299d83.mutation.json new file mode 100644 index 00000000..7832b686 --- /dev/null +++ b/corpus/java/shr-assign/fdb2bd299d83.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "ShrAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 5, + "byte": 5 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 7, + "byte": 7 + } + } + }, + "subst": "<<=" +} \ No newline at end of file diff --git a/corpus/java/statement-block/4a488699a17e.java b/corpus/java/statement-block/4a488699a17e.java new file mode 100644 index 00000000..3af7632e --- /dev/null +++ b/corpus/java/statement-block/4a488699a17e.java @@ -0,0 +1 @@ +void f() {} \ No newline at end of file diff --git a/corpus/java/statement-block/4a488699a17e.mutation.json b/corpus/java/statement-block/4a488699a17e.mutation.json new file mode 100644 index 00000000..b85ebebd --- /dev/null +++ b/corpus/java/statement-block/4a488699a17e.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": "StatementBlock", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 20, + "byte": 20 + } + } + }, + "subst": "{}" +} \ No newline at end of file diff --git a/corpus/java/statement-block/base.java b/corpus/java/statement-block/base.java new file mode 100644 index 00000000..03683c17 --- /dev/null +++ b/corpus/java/statement-block/base.java @@ -0,0 +1 @@ +void f() { return; } \ No newline at end of file diff --git a/corpus/java/sub-assign/38bc3e3fc5ec.java b/corpus/java/sub-assign/38bc3e3fc5ec.java new file mode 100644 index 00000000..56a7bbce --- /dev/null +++ b/corpus/java/sub-assign/38bc3e3fc5ec.java @@ -0,0 +1 @@ +x -= 0; \ No newline at end of file diff --git a/corpus/java/sub-assign/38bc3e3fc5ec.mutation.json b/corpus/java/sub-assign/38bc3e3fc5ec.mutation.json new file mode 100644 index 00000000..731460fc --- /dev/null +++ b/corpus/java/sub-assign/38bc3e3fc5ec.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/sub-assign/8cc605a5e77e.java b/corpus/java/sub-assign/8cc605a5e77e.java new file mode 100644 index 00000000..97375eae --- /dev/null +++ b/corpus/java/sub-assign/8cc605a5e77e.java @@ -0,0 +1 @@ +x -= 1; \ No newline at end of file diff --git a/corpus/java/sub-assign/8cc605a5e77e.mutation.json b/corpus/java/sub-assign/8cc605a5e77e.mutation.json new file mode 100644 index 00000000..e97331ce --- /dev/null +++ b/corpus/java/sub-assign/8cc605a5e77e.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/sub-assign/base.java b/corpus/java/sub-assign/base.java new file mode 100644 index 00000000..97375eae --- /dev/null +++ b/corpus/java/sub-assign/base.java @@ -0,0 +1 @@ +x -= 1; \ No newline at end of file diff --git a/corpus/java/sub-assign/d378c09abdab.java b/corpus/java/sub-assign/d378c09abdab.java new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/java/sub-assign/d378c09abdab.java @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/java/sub-assign/d378c09abdab.mutation.json b/corpus/java/sub-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..e76c1b01 --- /dev/null +++ b/corpus/java/sub-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "SubAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 4, + "byte": 4 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "=" +} \ No newline at end of file diff --git a/corpus/java/sub-assign/ec842e2bcac5.java b/corpus/java/sub-assign/ec842e2bcac5.java new file mode 100644 index 00000000..578b65e6 --- /dev/null +++ b/corpus/java/sub-assign/ec842e2bcac5.java @@ -0,0 +1 @@ +x -= -1; \ No newline at end of file diff --git a/corpus/java/sub-assign/ec842e2bcac5.mutation.json b/corpus/java/sub-assign/ec842e2bcac5.mutation.json new file mode 100644 index 00000000..1bb81377 --- /dev/null +++ b/corpus/java/sub-assign/ec842e2bcac5.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 5, + "byte": 5 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/sub-assign/fdbf18e39a1b.java b/corpus/java/sub-assign/fdbf18e39a1b.java new file mode 100644 index 00000000..c2a8ba18 --- /dev/null +++ b/corpus/java/sub-assign/fdbf18e39a1b.java @@ -0,0 +1 @@ +x += 1; \ No newline at end of file diff --git a/corpus/java/sub-assign/fdbf18e39a1b.mutation.json b/corpus/java/sub-assign/fdbf18e39a1b.mutation.json new file mode 100644 index 00000000..f96d040a --- /dev/null +++ b/corpus/java/sub-assign/fdbf18e39a1b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Assign": "SubAssign" + }, + "subst_span": { + "start": { + "line": 0, + "col": 2, + "byte": 2 + }, + "end": { + "line": 0, + "col": 4, + "byte": 4 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 0, + "byte": 0 + }, + "end": { + "line": 0, + "col": 6, + "byte": 6 + } + } + }, + "subst": "+=" +} \ No newline at end of file diff --git a/corpus/java/switch-case/3720768a7ad6.java b/corpus/java/switch-case/3720768a7ad6.java new file mode 100644 index 00000000..234f30b9 --- /dev/null +++ b/corpus/java/switch-case/3720768a7ad6.java @@ -0,0 +1,5 @@ +switch (x) { + case 1: + break; + +} \ No newline at end of file diff --git a/corpus/java/switch-case/3720768a7ad6.mutation.json b/corpus/java/switch-case/3720768a7ad6.mutation.json new file mode 100644 index 00000000..129e4066 --- /dev/null +++ b/corpus/java/switch-case/3720768a7ad6.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": "SwitchCase", + "subst_span": { + "start": { + "line": 3, + "col": 4, + "byte": 44 + }, + "end": { + "line": 4, + "col": 14, + "byte": 66 + } + }, + "effect_span": { + "start": { + "line": 3, + "col": 4, + "byte": 44 + }, + "end": { + "line": 4, + "col": 14, + "byte": 66 + } + } + }, + "subst": "" +} \ No newline at end of file diff --git a/corpus/java/switch-case/42ea40a55ee1.java b/corpus/java/switch-case/42ea40a55ee1.java new file mode 100644 index 00000000..5fb9e7a3 --- /dev/null +++ b/corpus/java/switch-case/42ea40a55ee1.java @@ -0,0 +1,6 @@ +switch (x) { + case 1: + break; + case 1: + break; +} \ No newline at end of file diff --git a/corpus/java/switch-case/42ea40a55ee1.mutation.json b/corpus/java/switch-case/42ea40a55ee1.mutation.json new file mode 100644 index 00000000..ad9e0233 --- /dev/null +++ b/corpus/java/switch-case/42ea40a55ee1.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 3, + "col": 9, + "byte": 49 + }, + "end": { + "line": 3, + "col": 10, + "byte": 50 + } + }, + "effect_span": { + "start": { + "line": 3, + "col": 9, + "byte": 49 + }, + "end": { + "line": 3, + "col": 10, + "byte": 50 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/switch-case/4cf6b6c78c83.java b/corpus/java/switch-case/4cf6b6c78c83.java new file mode 100644 index 00000000..37d24a60 --- /dev/null +++ b/corpus/java/switch-case/4cf6b6c78c83.java @@ -0,0 +1,6 @@ +switch (x) { + case 1: + break; + case 2: + break; +} \ No newline at end of file diff --git a/corpus/java/switch-case/4cf6b6c78c83.mutation.json b/corpus/java/switch-case/4cf6b6c78c83.mutation.json new file mode 100644 index 00000000..65b22926 --- /dev/null +++ b/corpus/java/switch-case/4cf6b6c78c83.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 1, + "col": 9, + "byte": 22 + }, + "end": { + "line": 1, + "col": 10, + "byte": 23 + } + }, + "effect_span": { + "start": { + "line": 1, + "col": 9, + "byte": 22 + }, + "end": { + "line": 1, + "col": 10, + "byte": 23 + } + } + }, + "subst": "1" +} \ No newline at end of file diff --git a/corpus/java/switch-case/8df5dca84e20.java b/corpus/java/switch-case/8df5dca84e20.java new file mode 100644 index 00000000..be0af583 --- /dev/null +++ b/corpus/java/switch-case/8df5dca84e20.java @@ -0,0 +1,6 @@ +switch (x) { + case 0: + break; + case 2: + break; +} \ No newline at end of file diff --git a/corpus/java/switch-case/8df5dca84e20.mutation.json b/corpus/java/switch-case/8df5dca84e20.mutation.json new file mode 100644 index 00000000..aaeb472d --- /dev/null +++ b/corpus/java/switch-case/8df5dca84e20.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 1, + "col": 9, + "byte": 22 + }, + "end": { + "line": 1, + "col": 10, + "byte": 23 + } + }, + "effect_span": { + "start": { + "line": 1, + "col": 9, + "byte": 22 + }, + "end": { + "line": 1, + "col": 10, + "byte": 23 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/switch-case/9e432f337ea3.java b/corpus/java/switch-case/9e432f337ea3.java new file mode 100644 index 00000000..9a4f9c79 --- /dev/null +++ b/corpus/java/switch-case/9e432f337ea3.java @@ -0,0 +1,6 @@ +switch (x) { + case 1: + break; + case 0: + break; +} \ No newline at end of file diff --git a/corpus/java/switch-case/9e432f337ea3.mutation.json b/corpus/java/switch-case/9e432f337ea3.mutation.json new file mode 100644 index 00000000..d4f6e50e --- /dev/null +++ b/corpus/java/switch-case/9e432f337ea3.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 3, + "col": 9, + "byte": 49 + }, + "end": { + "line": 3, + "col": 10, + "byte": 50 + } + }, + "effect_span": { + "start": { + "line": 3, + "col": 9, + "byte": 49 + }, + "end": { + "line": 3, + "col": 10, + "byte": 50 + } + } + }, + "subst": "0" +} \ No newline at end of file diff --git a/corpus/java/switch-case/a1d9ae21512a.java b/corpus/java/switch-case/a1d9ae21512a.java new file mode 100644 index 00000000..f0a1c41e --- /dev/null +++ b/corpus/java/switch-case/a1d9ae21512a.java @@ -0,0 +1,6 @@ +switch (x) { + case -1: + break; + case 2: + break; +} \ No newline at end of file diff --git a/corpus/java/switch-case/a1d9ae21512a.mutation.json b/corpus/java/switch-case/a1d9ae21512a.mutation.json new file mode 100644 index 00000000..9adc7afd --- /dev/null +++ b/corpus/java/switch-case/a1d9ae21512a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 1, + "col": 9, + "byte": 22 + }, + "end": { + "line": 1, + "col": 10, + "byte": 23 + } + }, + "effect_span": { + "start": { + "line": 1, + "col": 9, + "byte": 22 + }, + "end": { + "line": 1, + "col": 10, + "byte": 23 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/switch-case/b45a4dd2b5d9.java b/corpus/java/switch-case/b45a4dd2b5d9.java new file mode 100644 index 00000000..9837c708 --- /dev/null +++ b/corpus/java/switch-case/b45a4dd2b5d9.java @@ -0,0 +1,5 @@ +switch (x) { + + case 2: + break; +} \ No newline at end of file diff --git a/corpus/java/switch-case/b45a4dd2b5d9.mutation.json b/corpus/java/switch-case/b45a4dd2b5d9.mutation.json new file mode 100644 index 00000000..973ca2fe --- /dev/null +++ b/corpus/java/switch-case/b45a4dd2b5d9.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": "SwitchCase", + "subst_span": { + "start": { + "line": 1, + "col": 4, + "byte": 17 + }, + "end": { + "line": 2, + "col": 14, + "byte": 39 + } + }, + "effect_span": { + "start": { + "line": 1, + "col": 4, + "byte": 17 + }, + "end": { + "line": 2, + "col": 14, + "byte": 39 + } + } + }, + "subst": "" +} \ No newline at end of file diff --git a/corpus/java/switch-case/base.java b/corpus/java/switch-case/base.java new file mode 100644 index 00000000..37d24a60 --- /dev/null +++ b/corpus/java/switch-case/base.java @@ -0,0 +1,6 @@ +switch (x) { + case 1: + break; + case 2: + break; +} \ No newline at end of file diff --git a/corpus/java/switch-case/dd27367f621a.java b/corpus/java/switch-case/dd27367f621a.java new file mode 100644 index 00000000..03d8bbc5 --- /dev/null +++ b/corpus/java/switch-case/dd27367f621a.java @@ -0,0 +1,6 @@ +switch (x) { + case 1: + break; + case -1: + break; +} \ No newline at end of file diff --git a/corpus/java/switch-case/dd27367f621a.mutation.json b/corpus/java/switch-case/dd27367f621a.mutation.json new file mode 100644 index 00000000..fc61eb10 --- /dev/null +++ b/corpus/java/switch-case/dd27367f621a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": { + "Literal": "Number" + }, + "subst_span": { + "start": { + "line": 3, + "col": 9, + "byte": 49 + }, + "end": { + "line": 3, + "col": 10, + "byte": 50 + } + }, + "effect_span": { + "start": { + "line": 3, + "col": 9, + "byte": 49 + }, + "end": { + "line": 3, + "col": 10, + "byte": 50 + } + } + }, + "subst": "-1" +} \ No newline at end of file diff --git a/corpus/java/unary-not/130b76cd058d.java b/corpus/java/unary-not/130b76cd058d.java new file mode 100644 index 00000000..3d009a01 --- /dev/null +++ b/corpus/java/unary-not/130b76cd058d.java @@ -0,0 +1 @@ +boolean x = y; \ No newline at end of file diff --git a/corpus/java/unary-not/130b76cd058d.mutation.json b/corpus/java/unary-not/130b76cd058d.mutation.json new file mode 100644 index 00000000..b1576b50 --- /dev/null +++ b/corpus/java/unary-not/130b76cd058d.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "java", + "twig": [ + "src/a.java" + ], + "kind": "UnaryNot", + "subst_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 12, + "byte": 12 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "" +} \ No newline at end of file diff --git a/corpus/java/unary-not/base.java b/corpus/java/unary-not/base.java new file mode 100644 index 00000000..fd9514c1 --- /dev/null +++ b/corpus/java/unary-not/base.java @@ -0,0 +1 @@ +boolean x = !y; \ No newline at end of file diff --git a/crates/bough-cli/src/render.rs b/crates/bough-cli/src/render.rs index c450236f..7fd1228a 100644 --- a/crates/bough-cli/src/render.rs +++ b/crates/bough-cli/src/render.rs @@ -388,6 +388,7 @@ impl Render for LanguageId { LanguageId::Python => "py", LanguageId::C => "c", LanguageId::Go => "go", + LanguageId::Java => "java", } ) } @@ -401,6 +402,7 @@ impl Render for LanguageId { LanguageId::Python => "Python", LanguageId::C => "C", LanguageId::Go => "Go", + LanguageId::Java => "Java", } ) } @@ -412,6 +414,7 @@ impl Render for LanguageId { LanguageId::Python => r#""py""#.to_string(), LanguageId::C => r#""c""#.to_string(), LanguageId::Go => r#""go""#.to_string(), + LanguageId::Java => r#""java""#.to_string(), } } } diff --git a/crates/bough-cli/src/show_single_mutation.rs b/crates/bough-cli/src/show_single_mutation.rs index 58c422bc..147da3c3 100644 --- a/crates/bough-cli/src/show_single_mutation.rs +++ b/crates/bough-cli/src/show_single_mutation.rs @@ -56,6 +56,7 @@ impl ShowSingleMutation { LanguageId::Python => "python", LanguageId::C => "c", LanguageId::Go => "go", + LanguageId::Java => "java", } } } diff --git a/crates/bough-core/Cargo.toml b/crates/bough-core/Cargo.toml index 4e93359b..97322ad2 100644 --- a/crates/bough-core/Cargo.toml +++ b/crates/bough-core/Cargo.toml @@ -23,6 +23,7 @@ arborium-typescript = "2.16" arborium-python = "2.16" arborium-c = "2.16" arborium-go = "2.16" +arborium-java = "2.16" wait-timeout = "0.2" libc = "0.2" tracing = "0.1" diff --git a/crates/bough-core/src/language/java.rs b/crates/bough-core/src/language/java.rs new file mode 100644 index 00000000..19fe7813 --- /dev/null +++ b/crates/bough-core/src/language/java.rs @@ -0,0 +1,254 @@ +use super::LanguageDriver; +use crate::mutant::{ + AssignMutationKind, BinaryOpMutationKind, LiteralKind, MutantKind, Span, span_from_node, +}; +use tracing::trace; + +pub(crate) struct JavaDriver; + +impl LanguageDriver for JavaDriver { + fn ts_language(&self) -> arborium_tree_sitter::Language { + arborium_java::language().into() + } + + fn check_node( + &self, + node: &arborium_tree_sitter::Node<'_>, + file_content: &[u8], + ) -> Option<(MutantKind, Span, Span)> { + let result = match node.kind() { + "binary_expression" => { + let op_node = node.child_by_field_name("operator")?; + let op_text = op_node.utf8_text(file_content).ok()?; + let kind = match op_text { + "+" => BinaryOpMutationKind::Add, + "-" => BinaryOpMutationKind::Sub, + "*" => BinaryOpMutationKind::Mul, + "/" => BinaryOpMutationKind::Div, + "%" => BinaryOpMutationKind::Rem, + "&" => BinaryOpMutationKind::BitAnd, + "|" => BinaryOpMutationKind::BitOr, + "^" => BinaryOpMutationKind::BitXor, + "<<" => BinaryOpMutationKind::Shl, + ">>" => BinaryOpMutationKind::Shr, + "&&" => BinaryOpMutationKind::And, + "||" => BinaryOpMutationKind::Or, + "==" => BinaryOpMutationKind::Eq, + "!=" => BinaryOpMutationKind::Ne, + ">" => BinaryOpMutationKind::Gt, + ">=" => BinaryOpMutationKind::Gte, + "<" => BinaryOpMutationKind::Lt, + "<=" => BinaryOpMutationKind::Lte, + _ => return None, + }; + Some(( + MutantKind::BinaryOp(kind), + span_from_node(&op_node), + span_from_node(node), + )) + } + "assignment_expression" => { + let op_node = node.child_by_field_name("operator")?; + let op_text = op_node.utf8_text(file_content).ok()?; + let kind = match op_text { + "=" => AssignMutationKind::NormalAssign, + "+=" => AssignMutationKind::AddAssign, + "-=" => AssignMutationKind::SubAssign, + "*=" => AssignMutationKind::MulAssign, + "/=" => AssignMutationKind::DivAssign, + "%=" => AssignMutationKind::RemAssign, + "&=" => AssignMutationKind::BitAndAssign, + "|=" => AssignMutationKind::BitOrAssign, + "^=" => AssignMutationKind::BitXorAssign, + "<<=" => AssignMutationKind::ShlAssign, + ">>=" => AssignMutationKind::ShrAssign, + _ => return None, + }; + Some(( + MutantKind::Assign(kind), + span_from_node(&op_node), + span_from_node(node), + )) + } + "block" => { + let span = span_from_node(node); + Some((MutantKind::StatementBlock, span.clone(), span)) + } + "if_statement" | "while_statement" => { + let paren_expr = node.child_by_field_name("condition")?; + let inner = paren_expr.named_child(0)?; + Some(( + MutantKind::Condition, + span_from_node(&inner), + span_from_node(node), + )) + } + "for_statement" => { + let condition = node.child_by_field_name("condition")?; + Some(( + MutantKind::Condition, + span_from_node(&condition), + span_from_node(node), + )) + } + "switch_block_statement_group" => { + let span = span_from_node(node); + Some((MutantKind::SwitchCase, span.clone(), span)) + } + "decimal_integer_literal" | "decimal_floating_point_literal" => { + let span = span_from_node(node); + Some(( + MutantKind::Literal(LiteralKind::Number), + span.clone(), + span, + )) + } + "string_literal" => { + let text = node.utf8_text(file_content).ok()?; + let kind = if text == "\"\"" { + LiteralKind::EmptyString + } else { + LiteralKind::String + }; + let span = span_from_node(node); + Some((MutantKind::Literal(kind), span.clone(), span)) + } + "true" => { + let span = span_from_node(node); + Some(( + MutantKind::Literal(LiteralKind::BoolTrue), + span.clone(), + span, + )) + } + "false" => { + let span = span_from_node(node); + Some(( + MutantKind::Literal(LiteralKind::BoolFalse), + span.clone(), + span, + )) + } + "array_initializer" => { + if node.named_child_count() == 0 { + return None; + } + let span = span_from_node(node); + Some(( + MutantKind::ArrayDecl(crate::mutant::ArrayDeclKind::Inline), + span.clone(), + span, + )) + } + "unary_expression" => { + let op_node = node.child_by_field_name("operator")?; + let op_text = op_node.utf8_text(file_content).ok()?; + if op_text == "!" { + Some(( + MutantKind::UnaryNot, + span_from_node(&op_node), + span_from_node(node), + )) + } else { + None + } + } + "assert_statement" => { + let span = span_from_node(node); + Some((MutantKind::Assert, span.clone(), span)) + } + _ => None, + }; + if let Some((ref kind, ref span, _)) = result { + trace!(node_kind = node.kind(), mutant_kind = ?kind, start_byte = span.start().byte(), "java: matched node"); + } + result + } + + fn substitutions(&self, kind: &MutantKind) -> Vec { + match kind { + MutantKind::BinaryOp(BinaryOpMutationKind::Add) => vec!["-".into(), "*".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Sub) => vec!["+".into(), "/".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Mul) => vec!["/".into(), "+".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Div) => vec!["*".into(), "-".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Rem) => vec!["*".into(), "/".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::BitAnd) => vec!["|".into(), "^".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::BitOr) => vec!["&".into(), "^".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::BitXor) => vec!["&".into(), "|".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Shl) => vec![">>".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Shr) => vec!["<<".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::And) => vec!["||".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Or) => vec!["&&".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Eq) => vec!["!=".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Ne) => vec!["==".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Gt) => vec!["<=".into(), ">=".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Gte) => vec!["<".into(), ">".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Lt) => vec![">=".into(), "<=".into()], + MutantKind::BinaryOp(BinaryOpMutationKind::Lte) => vec![">".into(), "<".into()], + MutantKind::Assign(AssignMutationKind::NormalAssign) => { + vec!["+=".into(), "-=".into()] + } + MutantKind::Assign(AssignMutationKind::AddAssign) => vec!["-=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::SubAssign) => vec!["+=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::MulAssign) => vec!["/=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::DivAssign) => vec!["*=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::RemAssign) => vec!["*=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::BitAndAssign) => vec!["|=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::BitOrAssign) => vec!["&=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::BitXorAssign) => vec!["&=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::ShlAssign) => vec![">>=".into(), "=".into()], + MutantKind::Assign(AssignMutationKind::ShrAssign) => vec!["<<=".into(), "=".into()], + MutantKind::StatementBlock => vec!["{}".into()], + MutantKind::Condition => vec!["true".into(), "false".into()], + MutantKind::SwitchCase => vec!["".into()], + MutantKind::Literal(LiteralKind::Number) => vec!["0".into(), "1".into(), "-1".into()], + MutantKind::Literal(LiteralKind::String) => vec!["\"\"".into()], + MutantKind::Literal(LiteralKind::EmptyString) => vec!["\"bough\"".into()], + MutantKind::Literal(LiteralKind::BoolTrue) => vec!["false".into()], + MutantKind::Literal(LiteralKind::BoolFalse) => vec!["true".into()], + MutantKind::ArrayDecl(crate::mutant::ArrayDeclKind::Inline) => vec!["{}".into()], + MutantKind::UnaryNot => vec!["".into()], + MutantKind::Assert => vec![";".into()], + _ => vec![], + } + } + + fn is_context_boundary(&self, node: &arborium_tree_sitter::Node<'_>) -> bool { + matches!( + node.kind(), + "method_declaration" | "constructor_declaration" | "class_declaration" + ) + } +} + +#[cfg(test)] +mod tests { + fn dump_tree(src: &str) { + let lang: arborium_tree_sitter::Language = arborium_java::language().into(); + let mut parser = arborium_tree_sitter::Parser::new(); + parser.set_language(&lang).unwrap(); + let tree = parser.parse(src.as_bytes(), None).unwrap(); + fn print_node(node: &arborium_tree_sitter::Node, src: &[u8], indent: usize) { + let text = node.utf8_text(src).unwrap_or(""); + let field = node.parent().and_then(|p| { + (0..p.child_count()) + .find(|&i| p.child(i as u32).map(|c| c.id() == node.id()).unwrap_or(false)) + .and_then(|i| p.field_name_for_child(i as u32)) + }); + let field_str = field.map(|f| format!("{f}: ")).unwrap_or_default(); + eprintln!("{:indent$}{field_str}{} [{}-{}] {text:?}", "", node.kind(), node.start_byte(), node.end_byte(), indent=indent); + for i in 0..node.child_count() { + if let Some(child) = node.child(i as u32) { + print_node(&child, src, indent + 2); + } + } + } + print_node(&tree.root_node(), src.as_bytes(), 0); + } + + #[test] + #[ignore] + fn debug_tree() { + dump_tree("int x = a + b;"); + } +} diff --git a/crates/bough-core/src/language/mod.rs b/crates/bough-core/src/language/mod.rs index 0516dde6..2830af23 100644 --- a/crates/bough-core/src/language/mod.rs +++ b/crates/bough-core/src/language/mod.rs @@ -1,11 +1,13 @@ mod c; mod go; +mod java; mod javascript; mod python; mod typescript; pub(crate) use c::CDriver; pub(crate) use go::GoDriver; +pub(crate) use java::JavaDriver; pub(crate) use javascript::JavascriptDriver; pub(crate) use python::PythonDriver; pub(crate) use typescript::TypescriptDriver; @@ -34,5 +36,6 @@ pub(crate) fn driver_for_lang(lang: crate::LanguageId) -> Box Box::new(PythonDriver), crate::LanguageId::C => Box::new(CDriver), crate::LanguageId::Go => Box::new(GoDriver), + crate::LanguageId::Java => Box::new(JavaDriver), } } diff --git a/crates/bough-core/src/lib.rs b/crates/bough-core/src/lib.rs index a228a9d9..f8fa7e70 100644 --- a/crates/bough-core/src/lib.rs +++ b/crates/bough-core/src/lib.rs @@ -39,6 +39,8 @@ pub enum LanguageId { C, #[facet(rename = "go")] Go, + #[facet(rename = "java")] + Java, } impl LanguageId { @@ -48,6 +50,7 @@ impl LanguageId { LanguageId::Python, LanguageId::C, LanguageId::Go, + LanguageId::Java, ]; pub fn substitutions(&self, kind: &MutantKind) -> Vec { @@ -61,6 +64,7 @@ impl LanguageId { LanguageId::Python => "py", LanguageId::C => "c", LanguageId::Go => "go", + LanguageId::Java => "java", } } @@ -71,6 +75,7 @@ impl LanguageId { LanguageId::Python => "Python", LanguageId::C => "C", LanguageId::Go => "Go", + LanguageId::Java => "Java", } } @@ -81,6 +86,7 @@ impl LanguageId { LanguageId::Python => "python", LanguageId::C => "c", LanguageId::Go => "go", + LanguageId::Java => "java", } } diff --git a/crates/bough-corpus-tests/build.rs b/crates/bough-corpus-tests/build.rs index 06e71ab4..b93f7c87 100644 --- a/crates/bough-corpus-tests/build.rs +++ b/crates/bough-corpus-tests/build.rs @@ -35,6 +35,7 @@ fn main() { "python" => "bough_core::LanguageId::Python", "c" => "bough_core::LanguageId::C", "go" => "bough_core::LanguageId::Go", + "java" => "bough_core::LanguageId::Java", _ => continue, }; @@ -44,6 +45,7 @@ fn main() { "python" => "py", "c" => "c", "go" => "go", + "java" => "java", _ => continue, }; diff --git a/crates/bough-docs-cli/Cargo.toml b/crates/bough-docs-cli/Cargo.toml index 7e13022c..42fee094 100644 --- a/crates/bough-docs-cli/Cargo.toml +++ b/crates/bough-docs-cli/Cargo.toml @@ -17,7 +17,7 @@ facet-core = "0.44" figue = "2" arborium = { version = "2.16", features = ["lang-rust", -"lang-c", "lang-go", "lang-javascript", "lang-typescript", "lang-python", "lang-toml", "lang-bash", "lang-json", "lang-html", "lang-css"] } +"lang-c", "lang-go", "lang-java", "lang-javascript", "lang-typescript", "lang-python", "lang-toml", "lang-bash", "lang-json", "lang-html", "lang-css"] } comrak = { version = "0.36", default-features = false } tiny_http = "0.12" markdown-frontmatter = { version = "0.5", default-features = false, features = ["toml"] }