diff --git a/Cargo.lock b/Cargo.lock index 01378668..9df83c4d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -55,6 +55,7 @@ checksum = "db65328fda517795f476b9d1b0794199cce180077e204629946a0705f0093093" dependencies = [ "arborium-bash", "arborium-c", + "arborium-c-sharp", "arborium-css", "arborium-go", "arborium-highlight", @@ -93,6 +94,17 @@ dependencies = [ "tree-sitter-language", ] +[[package]] +name = "arborium-c-sharp" +version = "2.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a502d3f9558457e6c854776d10016165509937b959b1e9b6c58a1fdfd7bb9747" +dependencies = [ + "arborium-sysroot", + "cc", + "tree-sitter-language", +] + [[package]] name = "arborium-css" version = "2.16.0" @@ -346,6 +358,7 @@ name = "bough-core" version = "0.0.2" dependencies = [ "arborium-c", + "arborium-c-sharp", "arborium-go", "arborium-java", "arborium-javascript", diff --git a/corpus/c-sharp/add-assign/445559e8a095.cs b/corpus/c-sharp/add-assign/445559e8a095.cs new file mode 100644 index 00000000..5e86ac7b --- /dev/null +++ b/corpus/c-sharp/add-assign/445559e8a095.cs @@ -0,0 +1 @@ +x += -1; \ No newline at end of file diff --git a/corpus/c-sharp/add-assign/445559e8a095.mutation.json b/corpus/c-sharp/add-assign/445559e8a095.mutation.json new file mode 100644 index 00000000..49c0415f --- /dev/null +++ b/corpus/c-sharp/add-assign/445559e8a095.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/add-assign/8cc605a5e77e.cs b/corpus/c-sharp/add-assign/8cc605a5e77e.cs new file mode 100644 index 00000000..97375eae --- /dev/null +++ b/corpus/c-sharp/add-assign/8cc605a5e77e.cs @@ -0,0 +1 @@ +x -= 1; \ No newline at end of file diff --git a/corpus/c-sharp/add-assign/8cc605a5e77e.mutation.json b/corpus/c-sharp/add-assign/8cc605a5e77e.mutation.json new file mode 100644 index 00000000..8a6d3e7f --- /dev/null +++ b/corpus/c-sharp/add-assign/8cc605a5e77e.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/add-assign/8dd277e930b0.cs b/corpus/c-sharp/add-assign/8dd277e930b0.cs new file mode 100644 index 00000000..a1730cfa --- /dev/null +++ b/corpus/c-sharp/add-assign/8dd277e930b0.cs @@ -0,0 +1 @@ +x += 0; \ No newline at end of file diff --git a/corpus/c-sharp/add-assign/8dd277e930b0.mutation.json b/corpus/c-sharp/add-assign/8dd277e930b0.mutation.json new file mode 100644 index 00000000..78a8c0cb --- /dev/null +++ b/corpus/c-sharp/add-assign/8dd277e930b0.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/add-assign/base.cs b/corpus/c-sharp/add-assign/base.cs new file mode 100644 index 00000000..c2a8ba18 --- /dev/null +++ b/corpus/c-sharp/add-assign/base.cs @@ -0,0 +1 @@ +x += 1; \ No newline at end of file diff --git a/corpus/c-sharp/add-assign/d378c09abdab.cs b/corpus/c-sharp/add-assign/d378c09abdab.cs new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/c-sharp/add-assign/d378c09abdab.cs @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/c-sharp/add-assign/d378c09abdab.mutation.json b/corpus/c-sharp/add-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..a9a5536d --- /dev/null +++ b/corpus/c-sharp/add-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/add-assign/fdbf18e39a1b.cs b/corpus/c-sharp/add-assign/fdbf18e39a1b.cs new file mode 100644 index 00000000..c2a8ba18 --- /dev/null +++ b/corpus/c-sharp/add-assign/fdbf18e39a1b.cs @@ -0,0 +1 @@ +x += 1; \ No newline at end of file diff --git a/corpus/c-sharp/add-assign/fdbf18e39a1b.mutation.json b/corpus/c-sharp/add-assign/fdbf18e39a1b.mutation.json new file mode 100644 index 00000000..72796080 --- /dev/null +++ b/corpus/c-sharp/add-assign/fdbf18e39a1b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/array-decl-inline/1f66e2db7608.cs b/corpus/c-sharp/array-decl-inline/1f66e2db7608.cs new file mode 100644 index 00000000..23b16f4e --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/1f66e2db7608.cs @@ -0,0 +1 @@ +int[] x = {1, 2, 3}; \ No newline at end of file diff --git a/corpus/c-sharp/array-decl-inline/1f66e2db7608.mutation.json b/corpus/c-sharp/array-decl-inline/1f66e2db7608.mutation.json new file mode 100644 index 00000000..547e20d5 --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/1f66e2db7608.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/array-decl-inline/2997ea062cce.cs b/corpus/c-sharp/array-decl-inline/2997ea062cce.cs new file mode 100644 index 00000000..01c9d4b6 --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/2997ea062cce.cs @@ -0,0 +1 @@ +int[] x = {1, -1, 3}; \ No newline at end of file diff --git a/corpus/c-sharp/array-decl-inline/2997ea062cce.mutation.json b/corpus/c-sharp/array-decl-inline/2997ea062cce.mutation.json new file mode 100644 index 00000000..541ae372 --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/2997ea062cce.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/array-decl-inline/4e837df92057.cs b/corpus/c-sharp/array-decl-inline/4e837df92057.cs new file mode 100644 index 00000000..b3f644c2 --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/4e837df92057.cs @@ -0,0 +1 @@ +int[] x = {1, 2, 1}; \ No newline at end of file diff --git a/corpus/c-sharp/array-decl-inline/4e837df92057.mutation.json b/corpus/c-sharp/array-decl-inline/4e837df92057.mutation.json new file mode 100644 index 00000000..c03a2c69 --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/4e837df92057.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/array-decl-inline/5e18d897b928.cs b/corpus/c-sharp/array-decl-inline/5e18d897b928.cs new file mode 100644 index 00000000..5d869e75 --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/5e18d897b928.cs @@ -0,0 +1 @@ +int[] x = {1, 2, 0}; \ No newline at end of file diff --git a/corpus/c-sharp/array-decl-inline/5e18d897b928.mutation.json b/corpus/c-sharp/array-decl-inline/5e18d897b928.mutation.json new file mode 100644 index 00000000..6968b8df --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/5e18d897b928.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/array-decl-inline/79c8e2a3796a.cs b/corpus/c-sharp/array-decl-inline/79c8e2a3796a.cs new file mode 100644 index 00000000..386c216b --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/79c8e2a3796a.cs @@ -0,0 +1 @@ +int[] x = {1, 1, 3}; \ No newline at end of file diff --git a/corpus/c-sharp/array-decl-inline/79c8e2a3796a.mutation.json b/corpus/c-sharp/array-decl-inline/79c8e2a3796a.mutation.json new file mode 100644 index 00000000..e54c7281 --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/79c8e2a3796a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/array-decl-inline/a2340db3e9c0.cs b/corpus/c-sharp/array-decl-inline/a2340db3e9c0.cs new file mode 100644 index 00000000..202cde81 --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/a2340db3e9c0.cs @@ -0,0 +1 @@ +int[] x = {}; \ No newline at end of file diff --git a/corpus/c-sharp/array-decl-inline/a2340db3e9c0.mutation.json b/corpus/c-sharp/array-decl-inline/a2340db3e9c0.mutation.json new file mode 100644 index 00000000..b8be736b --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/a2340db3e9c0.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/array-decl-inline/base.cs b/corpus/c-sharp/array-decl-inline/base.cs new file mode 100644 index 00000000..23b16f4e --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/base.cs @@ -0,0 +1 @@ +int[] x = {1, 2, 3}; \ No newline at end of file diff --git a/corpus/c-sharp/array-decl-inline/d49f51cc544d.cs b/corpus/c-sharp/array-decl-inline/d49f51cc544d.cs new file mode 100644 index 00000000..da0169ca --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/d49f51cc544d.cs @@ -0,0 +1 @@ +int[] x = {-1, 2, 3}; \ No newline at end of file diff --git a/corpus/c-sharp/array-decl-inline/d49f51cc544d.mutation.json b/corpus/c-sharp/array-decl-inline/d49f51cc544d.mutation.json new file mode 100644 index 00000000..8aab0a09 --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/d49f51cc544d.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/array-decl-inline/eb04839ac209.cs b/corpus/c-sharp/array-decl-inline/eb04839ac209.cs new file mode 100644 index 00000000..645fec0a --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/eb04839ac209.cs @@ -0,0 +1 @@ +int[] x = {0, 2, 3}; \ No newline at end of file diff --git a/corpus/c-sharp/array-decl-inline/eb04839ac209.mutation.json b/corpus/c-sharp/array-decl-inline/eb04839ac209.mutation.json new file mode 100644 index 00000000..6692a02d --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/eb04839ac209.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/array-decl-inline/f3950e00cfa3.cs b/corpus/c-sharp/array-decl-inline/f3950e00cfa3.cs new file mode 100644 index 00000000..7637de21 --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/f3950e00cfa3.cs @@ -0,0 +1 @@ +int[] x = {1, 2, -1}; \ No newline at end of file diff --git a/corpus/c-sharp/array-decl-inline/f3950e00cfa3.mutation.json b/corpus/c-sharp/array-decl-inline/f3950e00cfa3.mutation.json new file mode 100644 index 00000000..63097afe --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/f3950e00cfa3.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/array-decl-inline/f686f207e1e2.cs b/corpus/c-sharp/array-decl-inline/f686f207e1e2.cs new file mode 100644 index 00000000..4f518a8b --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/f686f207e1e2.cs @@ -0,0 +1 @@ +int[] x = {1, 0, 3}; \ No newline at end of file diff --git a/corpus/c-sharp/array-decl-inline/f686f207e1e2.mutation.json b/corpus/c-sharp/array-decl-inline/f686f207e1e2.mutation.json new file mode 100644 index 00000000..69ffcfc6 --- /dev/null +++ b/corpus/c-sharp/array-decl-inline/f686f207e1e2.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-add/9f2b707800fd.cs b/corpus/c-sharp/bin-op-add/9f2b707800fd.cs new file mode 100644 index 00000000..09793e83 --- /dev/null +++ b/corpus/c-sharp/bin-op-add/9f2b707800fd.cs @@ -0,0 +1 @@ +int x = a * b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-add/9f2b707800fd.mutation.json b/corpus/c-sharp/bin-op-add/9f2b707800fd.mutation.json new file mode 100644 index 00000000..0b0fed88 --- /dev/null +++ b/corpus/c-sharp/bin-op-add/9f2b707800fd.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-add/base.cs b/corpus/c-sharp/bin-op-add/base.cs new file mode 100644 index 00000000..3080bce8 --- /dev/null +++ b/corpus/c-sharp/bin-op-add/base.cs @@ -0,0 +1 @@ +int x = a + b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-add/d7f9d93f4ccc.cs b/corpus/c-sharp/bin-op-add/d7f9d93f4ccc.cs new file mode 100644 index 00000000..b33c54f1 --- /dev/null +++ b/corpus/c-sharp/bin-op-add/d7f9d93f4ccc.cs @@ -0,0 +1 @@ +int x = a - b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-add/d7f9d93f4ccc.mutation.json b/corpus/c-sharp/bin-op-add/d7f9d93f4ccc.mutation.json new file mode 100644 index 00000000..368e9940 --- /dev/null +++ b/corpus/c-sharp/bin-op-add/d7f9d93f4ccc.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-and/5f6ba9811205.cs b/corpus/c-sharp/bin-op-and/5f6ba9811205.cs new file mode 100644 index 00000000..9c239899 --- /dev/null +++ b/corpus/c-sharp/bin-op-and/5f6ba9811205.cs @@ -0,0 +1 @@ +bool x = a || b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-and/5f6ba9811205.mutation.json b/corpus/c-sharp/bin-op-and/5f6ba9811205.mutation.json new file mode 100644 index 00000000..5a6d3339 --- /dev/null +++ b/corpus/c-sharp/bin-op-and/5f6ba9811205.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "kind": { + "BinaryOp": "And" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + } + }, + "subst": "||" +} \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-and/base.cs b/corpus/c-sharp/bin-op-and/base.cs new file mode 100644 index 00000000..eeebad13 --- /dev/null +++ b/corpus/c-sharp/bin-op-and/base.cs @@ -0,0 +1 @@ +bool x = a && b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-bit-and/38f5d58c2ffe.cs b/corpus/c-sharp/bin-op-bit-and/38f5d58c2ffe.cs new file mode 100644 index 00000000..de7e8e20 --- /dev/null +++ b/corpus/c-sharp/bin-op-bit-and/38f5d58c2ffe.cs @@ -0,0 +1 @@ +int x = a ^ b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-bit-and/38f5d58c2ffe.mutation.json b/corpus/c-sharp/bin-op-bit-and/38f5d58c2ffe.mutation.json new file mode 100644 index 00000000..6bf5d234 --- /dev/null +++ b/corpus/c-sharp/bin-op-bit-and/38f5d58c2ffe.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-bit-and/70166bbd7f82.cs b/corpus/c-sharp/bin-op-bit-and/70166bbd7f82.cs new file mode 100644 index 00000000..7e75c35e --- /dev/null +++ b/corpus/c-sharp/bin-op-bit-and/70166bbd7f82.cs @@ -0,0 +1 @@ +int x = a | b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-bit-and/70166bbd7f82.mutation.json b/corpus/c-sharp/bin-op-bit-and/70166bbd7f82.mutation.json new file mode 100644 index 00000000..81e51a30 --- /dev/null +++ b/corpus/c-sharp/bin-op-bit-and/70166bbd7f82.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-bit-and/base.cs b/corpus/c-sharp/bin-op-bit-and/base.cs new file mode 100644 index 00000000..1dc80895 --- /dev/null +++ b/corpus/c-sharp/bin-op-bit-and/base.cs @@ -0,0 +1 @@ +int x = a & b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-bit-or/38f5d58c2ffe.cs b/corpus/c-sharp/bin-op-bit-or/38f5d58c2ffe.cs new file mode 100644 index 00000000..de7e8e20 --- /dev/null +++ b/corpus/c-sharp/bin-op-bit-or/38f5d58c2ffe.cs @@ -0,0 +1 @@ +int x = a ^ b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-bit-or/38f5d58c2ffe.mutation.json b/corpus/c-sharp/bin-op-bit-or/38f5d58c2ffe.mutation.json new file mode 100644 index 00000000..1b459c7e --- /dev/null +++ b/corpus/c-sharp/bin-op-bit-or/38f5d58c2ffe.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-bit-or/b567243d001b.cs b/corpus/c-sharp/bin-op-bit-or/b567243d001b.cs new file mode 100644 index 00000000..1dc80895 --- /dev/null +++ b/corpus/c-sharp/bin-op-bit-or/b567243d001b.cs @@ -0,0 +1 @@ +int x = a & b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-bit-or/b567243d001b.mutation.json b/corpus/c-sharp/bin-op-bit-or/b567243d001b.mutation.json new file mode 100644 index 00000000..6e48cda1 --- /dev/null +++ b/corpus/c-sharp/bin-op-bit-or/b567243d001b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-bit-or/base.cs b/corpus/c-sharp/bin-op-bit-or/base.cs new file mode 100644 index 00000000..7e75c35e --- /dev/null +++ b/corpus/c-sharp/bin-op-bit-or/base.cs @@ -0,0 +1 @@ +int x = a | b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-bit-xor/70166bbd7f82.cs b/corpus/c-sharp/bin-op-bit-xor/70166bbd7f82.cs new file mode 100644 index 00000000..7e75c35e --- /dev/null +++ b/corpus/c-sharp/bin-op-bit-xor/70166bbd7f82.cs @@ -0,0 +1 @@ +int x = a | b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-bit-xor/70166bbd7f82.mutation.json b/corpus/c-sharp/bin-op-bit-xor/70166bbd7f82.mutation.json new file mode 100644 index 00000000..36425bbf --- /dev/null +++ b/corpus/c-sharp/bin-op-bit-xor/70166bbd7f82.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-bit-xor/b567243d001b.cs b/corpus/c-sharp/bin-op-bit-xor/b567243d001b.cs new file mode 100644 index 00000000..1dc80895 --- /dev/null +++ b/corpus/c-sharp/bin-op-bit-xor/b567243d001b.cs @@ -0,0 +1 @@ +int x = a & b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-bit-xor/b567243d001b.mutation.json b/corpus/c-sharp/bin-op-bit-xor/b567243d001b.mutation.json new file mode 100644 index 00000000..9b907d03 --- /dev/null +++ b/corpus/c-sharp/bin-op-bit-xor/b567243d001b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-bit-xor/base.cs b/corpus/c-sharp/bin-op-bit-xor/base.cs new file mode 100644 index 00000000..de7e8e20 --- /dev/null +++ b/corpus/c-sharp/bin-op-bit-xor/base.cs @@ -0,0 +1 @@ +int x = a ^ b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-div/9f2b707800fd.cs b/corpus/c-sharp/bin-op-div/9f2b707800fd.cs new file mode 100644 index 00000000..09793e83 --- /dev/null +++ b/corpus/c-sharp/bin-op-div/9f2b707800fd.cs @@ -0,0 +1 @@ +int x = a * b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-div/9f2b707800fd.mutation.json b/corpus/c-sharp/bin-op-div/9f2b707800fd.mutation.json new file mode 100644 index 00000000..f12e555f --- /dev/null +++ b/corpus/c-sharp/bin-op-div/9f2b707800fd.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-div/base.cs b/corpus/c-sharp/bin-op-div/base.cs new file mode 100644 index 00000000..acab57a4 --- /dev/null +++ b/corpus/c-sharp/bin-op-div/base.cs @@ -0,0 +1 @@ +int x = a / b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-div/d7f9d93f4ccc.cs b/corpus/c-sharp/bin-op-div/d7f9d93f4ccc.cs new file mode 100644 index 00000000..b33c54f1 --- /dev/null +++ b/corpus/c-sharp/bin-op-div/d7f9d93f4ccc.cs @@ -0,0 +1 @@ +int x = a - b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-div/d7f9d93f4ccc.mutation.json b/corpus/c-sharp/bin-op-div/d7f9d93f4ccc.mutation.json new file mode 100644 index 00000000..e8c72f29 --- /dev/null +++ b/corpus/c-sharp/bin-op-div/d7f9d93f4ccc.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-eq/b26c69d4c629.cs b/corpus/c-sharp/bin-op-eq/b26c69d4c629.cs new file mode 100644 index 00000000..6df67d39 --- /dev/null +++ b/corpus/c-sharp/bin-op-eq/b26c69d4c629.cs @@ -0,0 +1 @@ +bool x = a != b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-eq/b26c69d4c629.mutation.json b/corpus/c-sharp/bin-op-eq/b26c69d4c629.mutation.json new file mode 100644 index 00000000..e4fdbf3c --- /dev/null +++ b/corpus/c-sharp/bin-op-eq/b26c69d4c629.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "kind": { + "BinaryOp": "Eq" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + } + }, + "subst": "!=" +} \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-eq/base.cs b/corpus/c-sharp/bin-op-eq/base.cs new file mode 100644 index 00000000..eee9838e --- /dev/null +++ b/corpus/c-sharp/bin-op-eq/base.cs @@ -0,0 +1 @@ +bool x = a == b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-gt/2f24f3b30e88.cs b/corpus/c-sharp/bin-op-gt/2f24f3b30e88.cs new file mode 100644 index 00000000..83f0cfd9 --- /dev/null +++ b/corpus/c-sharp/bin-op-gt/2f24f3b30e88.cs @@ -0,0 +1 @@ +bool x = a >= b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-gt/2f24f3b30e88.mutation.json b/corpus/c-sharp/bin-op-gt/2f24f3b30e88.mutation.json new file mode 100644 index 00000000..ff320973 --- /dev/null +++ b/corpus/c-sharp/bin-op-gt/2f24f3b30e88.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "kind": { + "BinaryOp": "Gt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": ">=" +} \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-gt/base.cs b/corpus/c-sharp/bin-op-gt/base.cs new file mode 100644 index 00000000..f662ffa4 --- /dev/null +++ b/corpus/c-sharp/bin-op-gt/base.cs @@ -0,0 +1 @@ +bool x = a > b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-gt/d62430f0d824.cs b/corpus/c-sharp/bin-op-gt/d62430f0d824.cs new file mode 100644 index 00000000..d99b1357 --- /dev/null +++ b/corpus/c-sharp/bin-op-gt/d62430f0d824.cs @@ -0,0 +1 @@ +bool x = a <= b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-gt/d62430f0d824.mutation.json b/corpus/c-sharp/bin-op-gt/d62430f0d824.mutation.json new file mode 100644 index 00000000..fb04d4d9 --- /dev/null +++ b/corpus/c-sharp/bin-op-gt/d62430f0d824.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "kind": { + "BinaryOp": "Gt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "<=" +} \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-gte/116068cf6e31.cs b/corpus/c-sharp/bin-op-gte/116068cf6e31.cs new file mode 100644 index 00000000..624effc6 --- /dev/null +++ b/corpus/c-sharp/bin-op-gte/116068cf6e31.cs @@ -0,0 +1 @@ +bool x = a < b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-gte/116068cf6e31.mutation.json b/corpus/c-sharp/bin-op-gte/116068cf6e31.mutation.json new file mode 100644 index 00000000..226a0966 --- /dev/null +++ b/corpus/c-sharp/bin-op-gte/116068cf6e31.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "kind": { + "BinaryOp": "Gte" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + } + }, + "subst": "<" +} \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-gte/7e6d4f91a940.cs b/corpus/c-sharp/bin-op-gte/7e6d4f91a940.cs new file mode 100644 index 00000000..f662ffa4 --- /dev/null +++ b/corpus/c-sharp/bin-op-gte/7e6d4f91a940.cs @@ -0,0 +1 @@ +bool x = a > b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-gte/7e6d4f91a940.mutation.json b/corpus/c-sharp/bin-op-gte/7e6d4f91a940.mutation.json new file mode 100644 index 00000000..d70884bc --- /dev/null +++ b/corpus/c-sharp/bin-op-gte/7e6d4f91a940.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "kind": { + "BinaryOp": "Gte" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + } + }, + "subst": ">" +} \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-gte/base.cs b/corpus/c-sharp/bin-op-gte/base.cs new file mode 100644 index 00000000..83f0cfd9 --- /dev/null +++ b/corpus/c-sharp/bin-op-gte/base.cs @@ -0,0 +1 @@ +bool x = a >= b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-lt/2f24f3b30e88.cs b/corpus/c-sharp/bin-op-lt/2f24f3b30e88.cs new file mode 100644 index 00000000..83f0cfd9 --- /dev/null +++ b/corpus/c-sharp/bin-op-lt/2f24f3b30e88.cs @@ -0,0 +1 @@ +bool x = a >= b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-lt/2f24f3b30e88.mutation.json b/corpus/c-sharp/bin-op-lt/2f24f3b30e88.mutation.json new file mode 100644 index 00000000..35bb390e --- /dev/null +++ b/corpus/c-sharp/bin-op-lt/2f24f3b30e88.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "kind": { + "BinaryOp": "Lt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": ">=" +} \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-lt/base.cs b/corpus/c-sharp/bin-op-lt/base.cs new file mode 100644 index 00000000..624effc6 --- /dev/null +++ b/corpus/c-sharp/bin-op-lt/base.cs @@ -0,0 +1 @@ +bool x = a < b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-lt/d62430f0d824.cs b/corpus/c-sharp/bin-op-lt/d62430f0d824.cs new file mode 100644 index 00000000..d99b1357 --- /dev/null +++ b/corpus/c-sharp/bin-op-lt/d62430f0d824.cs @@ -0,0 +1 @@ +bool x = a <= b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-lt/d62430f0d824.mutation.json b/corpus/c-sharp/bin-op-lt/d62430f0d824.mutation.json new file mode 100644 index 00000000..242dfef1 --- /dev/null +++ b/corpus/c-sharp/bin-op-lt/d62430f0d824.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "kind": { + "BinaryOp": "Lt" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 12, + "byte": 12 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "<=" +} \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-lte/116068cf6e31.cs b/corpus/c-sharp/bin-op-lte/116068cf6e31.cs new file mode 100644 index 00000000..624effc6 --- /dev/null +++ b/corpus/c-sharp/bin-op-lte/116068cf6e31.cs @@ -0,0 +1 @@ +bool x = a < b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-lte/116068cf6e31.mutation.json b/corpus/c-sharp/bin-op-lte/116068cf6e31.mutation.json new file mode 100644 index 00000000..99a3c51a --- /dev/null +++ b/corpus/c-sharp/bin-op-lte/116068cf6e31.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "kind": { + "BinaryOp": "Lte" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + } + }, + "subst": "<" +} \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-lte/7e6d4f91a940.cs b/corpus/c-sharp/bin-op-lte/7e6d4f91a940.cs new file mode 100644 index 00000000..f662ffa4 --- /dev/null +++ b/corpus/c-sharp/bin-op-lte/7e6d4f91a940.cs @@ -0,0 +1 @@ +bool x = a > b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-lte/7e6d4f91a940.mutation.json b/corpus/c-sharp/bin-op-lte/7e6d4f91a940.mutation.json new file mode 100644 index 00000000..3af60752 --- /dev/null +++ b/corpus/c-sharp/bin-op-lte/7e6d4f91a940.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "kind": { + "BinaryOp": "Lte" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + } + }, + "subst": ">" +} \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-lte/base.cs b/corpus/c-sharp/bin-op-lte/base.cs new file mode 100644 index 00000000..d99b1357 --- /dev/null +++ b/corpus/c-sharp/bin-op-lte/base.cs @@ -0,0 +1 @@ +bool x = a <= b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-mul/5365b26943e5.cs b/corpus/c-sharp/bin-op-mul/5365b26943e5.cs new file mode 100644 index 00000000..acab57a4 --- /dev/null +++ b/corpus/c-sharp/bin-op-mul/5365b26943e5.cs @@ -0,0 +1 @@ +int x = a / b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-mul/5365b26943e5.mutation.json b/corpus/c-sharp/bin-op-mul/5365b26943e5.mutation.json new file mode 100644 index 00000000..03617891 --- /dev/null +++ b/corpus/c-sharp/bin-op-mul/5365b26943e5.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-mul/84f64ac93cd0.cs b/corpus/c-sharp/bin-op-mul/84f64ac93cd0.cs new file mode 100644 index 00000000..3080bce8 --- /dev/null +++ b/corpus/c-sharp/bin-op-mul/84f64ac93cd0.cs @@ -0,0 +1 @@ +int x = a + b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-mul/84f64ac93cd0.mutation.json b/corpus/c-sharp/bin-op-mul/84f64ac93cd0.mutation.json new file mode 100644 index 00000000..6ddb053b --- /dev/null +++ b/corpus/c-sharp/bin-op-mul/84f64ac93cd0.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-mul/base.cs b/corpus/c-sharp/bin-op-mul/base.cs new file mode 100644 index 00000000..09793e83 --- /dev/null +++ b/corpus/c-sharp/bin-op-mul/base.cs @@ -0,0 +1 @@ +int x = a * b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-ne/31eb04257e28.cs b/corpus/c-sharp/bin-op-ne/31eb04257e28.cs new file mode 100644 index 00000000..eee9838e --- /dev/null +++ b/corpus/c-sharp/bin-op-ne/31eb04257e28.cs @@ -0,0 +1 @@ +bool x = a == b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-ne/31eb04257e28.mutation.json b/corpus/c-sharp/bin-op-ne/31eb04257e28.mutation.json new file mode 100644 index 00000000..5dab876d --- /dev/null +++ b/corpus/c-sharp/bin-op-ne/31eb04257e28.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "kind": { + "BinaryOp": "Ne" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + } + }, + "subst": "==" +} \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-ne/base.cs b/corpus/c-sharp/bin-op-ne/base.cs new file mode 100644 index 00000000..6df67d39 --- /dev/null +++ b/corpus/c-sharp/bin-op-ne/base.cs @@ -0,0 +1 @@ +bool x = a != b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-or/10d4b640bdc1.cs b/corpus/c-sharp/bin-op-or/10d4b640bdc1.cs new file mode 100644 index 00000000..eeebad13 --- /dev/null +++ b/corpus/c-sharp/bin-op-or/10d4b640bdc1.cs @@ -0,0 +1 @@ +bool x = a && b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-or/10d4b640bdc1.mutation.json b/corpus/c-sharp/bin-op-or/10d4b640bdc1.mutation.json new file mode 100644 index 00000000..0c3eabfc --- /dev/null +++ b/corpus/c-sharp/bin-op-or/10d4b640bdc1.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "kind": { + "BinaryOp": "Or" + }, + "subst_span": { + "start": { + "line": 0, + "col": 11, + "byte": 11 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 15, + "byte": 15 + } + } + }, + "subst": "&&" +} \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-or/base.cs b/corpus/c-sharp/bin-op-or/base.cs new file mode 100644 index 00000000..9c239899 --- /dev/null +++ b/corpus/c-sharp/bin-op-or/base.cs @@ -0,0 +1 @@ +bool x = a || b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-rem/5365b26943e5.cs b/corpus/c-sharp/bin-op-rem/5365b26943e5.cs new file mode 100644 index 00000000..acab57a4 --- /dev/null +++ b/corpus/c-sharp/bin-op-rem/5365b26943e5.cs @@ -0,0 +1 @@ +int x = a / b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-rem/5365b26943e5.mutation.json b/corpus/c-sharp/bin-op-rem/5365b26943e5.mutation.json new file mode 100644 index 00000000..c406b30c --- /dev/null +++ b/corpus/c-sharp/bin-op-rem/5365b26943e5.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-rem/9f2b707800fd.cs b/corpus/c-sharp/bin-op-rem/9f2b707800fd.cs new file mode 100644 index 00000000..09793e83 --- /dev/null +++ b/corpus/c-sharp/bin-op-rem/9f2b707800fd.cs @@ -0,0 +1 @@ +int x = a * b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-rem/9f2b707800fd.mutation.json b/corpus/c-sharp/bin-op-rem/9f2b707800fd.mutation.json new file mode 100644 index 00000000..b6a3fb64 --- /dev/null +++ b/corpus/c-sharp/bin-op-rem/9f2b707800fd.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-rem/base.cs b/corpus/c-sharp/bin-op-rem/base.cs new file mode 100644 index 00000000..38b20afc --- /dev/null +++ b/corpus/c-sharp/bin-op-rem/base.cs @@ -0,0 +1 @@ +int x = a % b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-shl/base.cs b/corpus/c-sharp/bin-op-shl/base.cs new file mode 100644 index 00000000..3ad4dd47 --- /dev/null +++ b/corpus/c-sharp/bin-op-shl/base.cs @@ -0,0 +1 @@ +int x = a << b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-shl/fe5dadb73bf6.cs b/corpus/c-sharp/bin-op-shl/fe5dadb73bf6.cs new file mode 100644 index 00000000..ab06c5e8 --- /dev/null +++ b/corpus/c-sharp/bin-op-shl/fe5dadb73bf6.cs @@ -0,0 +1 @@ +int x = a >> b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-shl/fe5dadb73bf6.mutation.json b/corpus/c-sharp/bin-op-shl/fe5dadb73bf6.mutation.json new file mode 100644 index 00000000..f6628d9f --- /dev/null +++ b/corpus/c-sharp/bin-op-shl/fe5dadb73bf6.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-shr/base.cs b/corpus/c-sharp/bin-op-shr/base.cs new file mode 100644 index 00000000..ab06c5e8 --- /dev/null +++ b/corpus/c-sharp/bin-op-shr/base.cs @@ -0,0 +1 @@ +int x = a >> b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-shr/ce059d977f3f.cs b/corpus/c-sharp/bin-op-shr/ce059d977f3f.cs new file mode 100644 index 00000000..3ad4dd47 --- /dev/null +++ b/corpus/c-sharp/bin-op-shr/ce059d977f3f.cs @@ -0,0 +1 @@ +int x = a << b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-shr/ce059d977f3f.mutation.json b/corpus/c-sharp/bin-op-shr/ce059d977f3f.mutation.json new file mode 100644 index 00000000..63732b9b --- /dev/null +++ b/corpus/c-sharp/bin-op-shr/ce059d977f3f.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-sub/5365b26943e5.cs b/corpus/c-sharp/bin-op-sub/5365b26943e5.cs new file mode 100644 index 00000000..acab57a4 --- /dev/null +++ b/corpus/c-sharp/bin-op-sub/5365b26943e5.cs @@ -0,0 +1 @@ +int x = a / b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-sub/5365b26943e5.mutation.json b/corpus/c-sharp/bin-op-sub/5365b26943e5.mutation.json new file mode 100644 index 00000000..4f5bdb9a --- /dev/null +++ b/corpus/c-sharp/bin-op-sub/5365b26943e5.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-sub/84f64ac93cd0.cs b/corpus/c-sharp/bin-op-sub/84f64ac93cd0.cs new file mode 100644 index 00000000..3080bce8 --- /dev/null +++ b/corpus/c-sharp/bin-op-sub/84f64ac93cd0.cs @@ -0,0 +1 @@ +int x = a + b; \ No newline at end of file diff --git a/corpus/c-sharp/bin-op-sub/84f64ac93cd0.mutation.json b/corpus/c-sharp/bin-op-sub/84f64ac93cd0.mutation.json new file mode 100644 index 00000000..b66b9347 --- /dev/null +++ b/corpus/c-sharp/bin-op-sub/84f64ac93cd0.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bin-op-sub/base.cs b/corpus/c-sharp/bin-op-sub/base.cs new file mode 100644 index 00000000..b33c54f1 --- /dev/null +++ b/corpus/c-sharp/bin-op-sub/base.cs @@ -0,0 +1 @@ +int x = a - b; \ No newline at end of file diff --git a/corpus/c-sharp/bit-and-assign/3cd018dc1e61.cs b/corpus/c-sharp/bit-and-assign/3cd018dc1e61.cs new file mode 100644 index 00000000..e23a5b96 --- /dev/null +++ b/corpus/c-sharp/bit-and-assign/3cd018dc1e61.cs @@ -0,0 +1 @@ +x &= 0; \ No newline at end of file diff --git a/corpus/c-sharp/bit-and-assign/3cd018dc1e61.mutation.json b/corpus/c-sharp/bit-and-assign/3cd018dc1e61.mutation.json new file mode 100644 index 00000000..78a8c0cb --- /dev/null +++ b/corpus/c-sharp/bit-and-assign/3cd018dc1e61.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bit-and-assign/6bfdbad3c48b.cs b/corpus/c-sharp/bit-and-assign/6bfdbad3c48b.cs new file mode 100644 index 00000000..bd905bec --- /dev/null +++ b/corpus/c-sharp/bit-and-assign/6bfdbad3c48b.cs @@ -0,0 +1 @@ +x &= 1; \ No newline at end of file diff --git a/corpus/c-sharp/bit-and-assign/6bfdbad3c48b.mutation.json b/corpus/c-sharp/bit-and-assign/6bfdbad3c48b.mutation.json new file mode 100644 index 00000000..72796080 --- /dev/null +++ b/corpus/c-sharp/bit-and-assign/6bfdbad3c48b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bit-and-assign/79e10b1983fd.cs b/corpus/c-sharp/bit-and-assign/79e10b1983fd.cs new file mode 100644 index 00000000..994aafce --- /dev/null +++ b/corpus/c-sharp/bit-and-assign/79e10b1983fd.cs @@ -0,0 +1 @@ +x |= 1; \ No newline at end of file diff --git a/corpus/c-sharp/bit-and-assign/79e10b1983fd.mutation.json b/corpus/c-sharp/bit-and-assign/79e10b1983fd.mutation.json new file mode 100644 index 00000000..d45246d0 --- /dev/null +++ b/corpus/c-sharp/bit-and-assign/79e10b1983fd.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bit-and-assign/95ebd6ab88fb.cs b/corpus/c-sharp/bit-and-assign/95ebd6ab88fb.cs new file mode 100644 index 00000000..4a872b1d --- /dev/null +++ b/corpus/c-sharp/bit-and-assign/95ebd6ab88fb.cs @@ -0,0 +1 @@ +x &= -1; \ No newline at end of file diff --git a/corpus/c-sharp/bit-and-assign/95ebd6ab88fb.mutation.json b/corpus/c-sharp/bit-and-assign/95ebd6ab88fb.mutation.json new file mode 100644 index 00000000..49c0415f --- /dev/null +++ b/corpus/c-sharp/bit-and-assign/95ebd6ab88fb.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bit-and-assign/base.cs b/corpus/c-sharp/bit-and-assign/base.cs new file mode 100644 index 00000000..bd905bec --- /dev/null +++ b/corpus/c-sharp/bit-and-assign/base.cs @@ -0,0 +1 @@ +x &= 1; \ No newline at end of file diff --git a/corpus/c-sharp/bit-and-assign/d378c09abdab.cs b/corpus/c-sharp/bit-and-assign/d378c09abdab.cs new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/c-sharp/bit-and-assign/d378c09abdab.cs @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/c-sharp/bit-and-assign/d378c09abdab.mutation.json b/corpus/c-sharp/bit-and-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..0c8ad954 --- /dev/null +++ b/corpus/c-sharp/bit-and-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bit-or-assign/090e4690c09c.cs b/corpus/c-sharp/bit-or-assign/090e4690c09c.cs new file mode 100644 index 00000000..c5ddf4d0 --- /dev/null +++ b/corpus/c-sharp/bit-or-assign/090e4690c09c.cs @@ -0,0 +1 @@ +x |= -1; \ No newline at end of file diff --git a/corpus/c-sharp/bit-or-assign/090e4690c09c.mutation.json b/corpus/c-sharp/bit-or-assign/090e4690c09c.mutation.json new file mode 100644 index 00000000..49c0415f --- /dev/null +++ b/corpus/c-sharp/bit-or-assign/090e4690c09c.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bit-or-assign/20f23a3d4f0a.cs b/corpus/c-sharp/bit-or-assign/20f23a3d4f0a.cs new file mode 100644 index 00000000..c94eab26 --- /dev/null +++ b/corpus/c-sharp/bit-or-assign/20f23a3d4f0a.cs @@ -0,0 +1 @@ +x |= 0; \ No newline at end of file diff --git a/corpus/c-sharp/bit-or-assign/20f23a3d4f0a.mutation.json b/corpus/c-sharp/bit-or-assign/20f23a3d4f0a.mutation.json new file mode 100644 index 00000000..78a8c0cb --- /dev/null +++ b/corpus/c-sharp/bit-or-assign/20f23a3d4f0a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bit-or-assign/6bfdbad3c48b.cs b/corpus/c-sharp/bit-or-assign/6bfdbad3c48b.cs new file mode 100644 index 00000000..bd905bec --- /dev/null +++ b/corpus/c-sharp/bit-or-assign/6bfdbad3c48b.cs @@ -0,0 +1 @@ +x &= 1; \ No newline at end of file diff --git a/corpus/c-sharp/bit-or-assign/6bfdbad3c48b.mutation.json b/corpus/c-sharp/bit-or-assign/6bfdbad3c48b.mutation.json new file mode 100644 index 00000000..c730935f --- /dev/null +++ b/corpus/c-sharp/bit-or-assign/6bfdbad3c48b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bit-or-assign/79e10b1983fd.cs b/corpus/c-sharp/bit-or-assign/79e10b1983fd.cs new file mode 100644 index 00000000..994aafce --- /dev/null +++ b/corpus/c-sharp/bit-or-assign/79e10b1983fd.cs @@ -0,0 +1 @@ +x |= 1; \ No newline at end of file diff --git a/corpus/c-sharp/bit-or-assign/79e10b1983fd.mutation.json b/corpus/c-sharp/bit-or-assign/79e10b1983fd.mutation.json new file mode 100644 index 00000000..72796080 --- /dev/null +++ b/corpus/c-sharp/bit-or-assign/79e10b1983fd.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bit-or-assign/base.cs b/corpus/c-sharp/bit-or-assign/base.cs new file mode 100644 index 00000000..994aafce --- /dev/null +++ b/corpus/c-sharp/bit-or-assign/base.cs @@ -0,0 +1 @@ +x |= 1; \ No newline at end of file diff --git a/corpus/c-sharp/bit-or-assign/d378c09abdab.cs b/corpus/c-sharp/bit-or-assign/d378c09abdab.cs new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/c-sharp/bit-or-assign/d378c09abdab.cs @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/c-sharp/bit-or-assign/d378c09abdab.mutation.json b/corpus/c-sharp/bit-or-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..872ccf97 --- /dev/null +++ b/corpus/c-sharp/bit-or-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bit-xor-assign/0cf073fd5ce5.cs b/corpus/c-sharp/bit-xor-assign/0cf073fd5ce5.cs new file mode 100644 index 00000000..7c90217a --- /dev/null +++ b/corpus/c-sharp/bit-xor-assign/0cf073fd5ce5.cs @@ -0,0 +1 @@ +x ^= -1; \ No newline at end of file diff --git a/corpus/c-sharp/bit-xor-assign/0cf073fd5ce5.mutation.json b/corpus/c-sharp/bit-xor-assign/0cf073fd5ce5.mutation.json new file mode 100644 index 00000000..49c0415f --- /dev/null +++ b/corpus/c-sharp/bit-xor-assign/0cf073fd5ce5.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bit-xor-assign/46ab207a4f4d.cs b/corpus/c-sharp/bit-xor-assign/46ab207a4f4d.cs new file mode 100644 index 00000000..2bb31439 --- /dev/null +++ b/corpus/c-sharp/bit-xor-assign/46ab207a4f4d.cs @@ -0,0 +1 @@ +x ^= 1; \ No newline at end of file diff --git a/corpus/c-sharp/bit-xor-assign/46ab207a4f4d.mutation.json b/corpus/c-sharp/bit-xor-assign/46ab207a4f4d.mutation.json new file mode 100644 index 00000000..72796080 --- /dev/null +++ b/corpus/c-sharp/bit-xor-assign/46ab207a4f4d.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bit-xor-assign/6bfdbad3c48b.cs b/corpus/c-sharp/bit-xor-assign/6bfdbad3c48b.cs new file mode 100644 index 00000000..bd905bec --- /dev/null +++ b/corpus/c-sharp/bit-xor-assign/6bfdbad3c48b.cs @@ -0,0 +1 @@ +x &= 1; \ No newline at end of file diff --git a/corpus/c-sharp/bit-xor-assign/6bfdbad3c48b.mutation.json b/corpus/c-sharp/bit-xor-assign/6bfdbad3c48b.mutation.json new file mode 100644 index 00000000..9076d230 --- /dev/null +++ b/corpus/c-sharp/bit-xor-assign/6bfdbad3c48b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bit-xor-assign/base.cs b/corpus/c-sharp/bit-xor-assign/base.cs new file mode 100644 index 00000000..2bb31439 --- /dev/null +++ b/corpus/c-sharp/bit-xor-assign/base.cs @@ -0,0 +1 @@ +x ^= 1; \ No newline at end of file diff --git a/corpus/c-sharp/bit-xor-assign/c00a9f845598.cs b/corpus/c-sharp/bit-xor-assign/c00a9f845598.cs new file mode 100644 index 00000000..4bf709cf --- /dev/null +++ b/corpus/c-sharp/bit-xor-assign/c00a9f845598.cs @@ -0,0 +1 @@ +x ^= 0; \ No newline at end of file diff --git a/corpus/c-sharp/bit-xor-assign/c00a9f845598.mutation.json b/corpus/c-sharp/bit-xor-assign/c00a9f845598.mutation.json new file mode 100644 index 00000000..78a8c0cb --- /dev/null +++ b/corpus/c-sharp/bit-xor-assign/c00a9f845598.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/bit-xor-assign/d378c09abdab.cs b/corpus/c-sharp/bit-xor-assign/d378c09abdab.cs new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/c-sharp/bit-xor-assign/d378c09abdab.cs @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/c-sharp/bit-xor-assign/d378c09abdab.mutation.json b/corpus/c-sharp/bit-xor-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..6f7346af --- /dev/null +++ b/corpus/c-sharp/bit-xor-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition-for/3ec4fb201f8a.cs b/corpus/c-sharp/condition-for/3ec4fb201f8a.cs new file mode 100644 index 00000000..65fb8746 --- /dev/null +++ b/corpus/c-sharp/condition-for/3ec4fb201f8a.cs @@ -0,0 +1 @@ +for (int i = 0; i < 10; i++) {} \ No newline at end of file diff --git a/corpus/c-sharp/condition-for/3ec4fb201f8a.mutation.json b/corpus/c-sharp/condition-for/3ec4fb201f8a.mutation.json new file mode 100644 index 00000000..b72c905e --- /dev/null +++ b/corpus/c-sharp/condition-for/3ec4fb201f8a.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition-for/49c3d703f11c.cs b/corpus/c-sharp/condition-for/49c3d703f11c.cs new file mode 100644 index 00000000..9e85c937 --- /dev/null +++ b/corpus/c-sharp/condition-for/49c3d703f11c.cs @@ -0,0 +1 @@ +for (int i = 1; i < 10; i++) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition-for/49c3d703f11c.mutation.json b/corpus/c-sharp/condition-for/49c3d703f11c.mutation.json new file mode 100644 index 00000000..30f3f2a1 --- /dev/null +++ b/corpus/c-sharp/condition-for/49c3d703f11c.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition-for/5b3b80251420.cs b/corpus/c-sharp/condition-for/5b3b80251420.cs new file mode 100644 index 00000000..e9c0255b --- /dev/null +++ b/corpus/c-sharp/condition-for/5b3b80251420.cs @@ -0,0 +1 @@ +for (int i = -1; i < 10; i++) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition-for/5b3b80251420.mutation.json b/corpus/c-sharp/condition-for/5b3b80251420.mutation.json new file mode 100644 index 00000000..ada3ff95 --- /dev/null +++ b/corpus/c-sharp/condition-for/5b3b80251420.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition-for/63c6fc527527.cs b/corpus/c-sharp/condition-for/63c6fc527527.cs new file mode 100644 index 00000000..d36146f9 --- /dev/null +++ b/corpus/c-sharp/condition-for/63c6fc527527.cs @@ -0,0 +1 @@ +for (int i = 0; true; i++) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition-for/63c6fc527527.mutation.json b/corpus/c-sharp/condition-for/63c6fc527527.mutation.json new file mode 100644 index 00000000..a9c817f8 --- /dev/null +++ b/corpus/c-sharp/condition-for/63c6fc527527.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition-for/824f75d53020.cs b/corpus/c-sharp/condition-for/824f75d53020.cs new file mode 100644 index 00000000..ea71ac5c --- /dev/null +++ b/corpus/c-sharp/condition-for/824f75d53020.cs @@ -0,0 +1 @@ +for (int i = 0; i < -1; i++) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition-for/824f75d53020.mutation.json b/corpus/c-sharp/condition-for/824f75d53020.mutation.json new file mode 100644 index 00000000..92d8aa6b --- /dev/null +++ b/corpus/c-sharp/condition-for/824f75d53020.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition-for/9be6fb2c9634.cs b/corpus/c-sharp/condition-for/9be6fb2c9634.cs new file mode 100644 index 00000000..aad9c076 --- /dev/null +++ b/corpus/c-sharp/condition-for/9be6fb2c9634.cs @@ -0,0 +1 @@ +for (int i = 0; i >= 10; i++) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition-for/9be6fb2c9634.mutation.json b/corpus/c-sharp/condition-for/9be6fb2c9634.mutation.json new file mode 100644 index 00000000..e25e7caf --- /dev/null +++ b/corpus/c-sharp/condition-for/9be6fb2c9634.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition-for/a50d239602bd.cs b/corpus/c-sharp/condition-for/a50d239602bd.cs new file mode 100644 index 00000000..44a1e3dc --- /dev/null +++ b/corpus/c-sharp/condition-for/a50d239602bd.cs @@ -0,0 +1 @@ +for (int i = 0; false; i++) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition-for/a50d239602bd.mutation.json b/corpus/c-sharp/condition-for/a50d239602bd.mutation.json new file mode 100644 index 00000000..b027ae36 --- /dev/null +++ b/corpus/c-sharp/condition-for/a50d239602bd.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition-for/b0db648210d3.cs b/corpus/c-sharp/condition-for/b0db648210d3.cs new file mode 100644 index 00000000..efef89cc --- /dev/null +++ b/corpus/c-sharp/condition-for/b0db648210d3.cs @@ -0,0 +1 @@ +for (int i = 0; i < 10; i++) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition-for/b0db648210d3.mutation.json b/corpus/c-sharp/condition-for/b0db648210d3.mutation.json new file mode 100644 index 00000000..2eb47c4a --- /dev/null +++ b/corpus/c-sharp/condition-for/b0db648210d3.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition-for/base.cs b/corpus/c-sharp/condition-for/base.cs new file mode 100644 index 00000000..efef89cc --- /dev/null +++ b/corpus/c-sharp/condition-for/base.cs @@ -0,0 +1 @@ +for (int i = 0; i < 10; i++) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition-for/c33140e3b185.cs b/corpus/c-sharp/condition-for/c33140e3b185.cs new file mode 100644 index 00000000..2c5b73c7 --- /dev/null +++ b/corpus/c-sharp/condition-for/c33140e3b185.cs @@ -0,0 +1 @@ +for (int i = 0; i < 1; i++) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition-for/c33140e3b185.mutation.json b/corpus/c-sharp/condition-for/c33140e3b185.mutation.json new file mode 100644 index 00000000..84d56a83 --- /dev/null +++ b/corpus/c-sharp/condition-for/c33140e3b185.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition-for/cd1490c33e58.cs b/corpus/c-sharp/condition-for/cd1490c33e58.cs new file mode 100644 index 00000000..08ffbb11 --- /dev/null +++ b/corpus/c-sharp/condition-for/cd1490c33e58.cs @@ -0,0 +1 @@ +for (int i = 0; i < 0; i++) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition-for/cd1490c33e58.mutation.json b/corpus/c-sharp/condition-for/cd1490c33e58.mutation.json new file mode 100644 index 00000000..f8ce65fa --- /dev/null +++ b/corpus/c-sharp/condition-for/cd1490c33e58.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition-for/e9bfa08ab473.cs b/corpus/c-sharp/condition-for/e9bfa08ab473.cs new file mode 100644 index 00000000..a8a44097 --- /dev/null +++ b/corpus/c-sharp/condition-for/e9bfa08ab473.cs @@ -0,0 +1 @@ +for (int i = 0; i <= 10; i++) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition-for/e9bfa08ab473.mutation.json b/corpus/c-sharp/condition-for/e9bfa08ab473.mutation.json new file mode 100644 index 00000000..059fed26 --- /dev/null +++ b/corpus/c-sharp/condition-for/e9bfa08ab473.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition-while/2144d91c129c.cs b/corpus/c-sharp/condition-while/2144d91c129c.cs new file mode 100644 index 00000000..08d2722e --- /dev/null +++ b/corpus/c-sharp/condition-while/2144d91c129c.cs @@ -0,0 +1 @@ +while (false) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition-while/2144d91c129c.mutation.json b/corpus/c-sharp/condition-while/2144d91c129c.mutation.json new file mode 100644 index 00000000..123ae928 --- /dev/null +++ b/corpus/c-sharp/condition-while/2144d91c129c.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition-while/50a05a428bd0.cs b/corpus/c-sharp/condition-while/50a05a428bd0.cs new file mode 100644 index 00000000..a7ab167b --- /dev/null +++ b/corpus/c-sharp/condition-while/50a05a428bd0.cs @@ -0,0 +1 @@ +while (x) {} \ No newline at end of file diff --git a/corpus/c-sharp/condition-while/50a05a428bd0.mutation.json b/corpus/c-sharp/condition-while/50a05a428bd0.mutation.json new file mode 100644 index 00000000..3a73a37e --- /dev/null +++ b/corpus/c-sharp/condition-while/50a05a428bd0.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition-while/base.cs b/corpus/c-sharp/condition-while/base.cs new file mode 100644 index 00000000..38af9368 --- /dev/null +++ b/corpus/c-sharp/condition-while/base.cs @@ -0,0 +1 @@ +while (x) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition-while/f21165ed31f3.cs b/corpus/c-sharp/condition-while/f21165ed31f3.cs new file mode 100644 index 00000000..7af01761 --- /dev/null +++ b/corpus/c-sharp/condition-while/f21165ed31f3.cs @@ -0,0 +1 @@ +while (true) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition-while/f21165ed31f3.mutation.json b/corpus/c-sharp/condition-while/f21165ed31f3.mutation.json new file mode 100644 index 00000000..ae6577a4 --- /dev/null +++ b/corpus/c-sharp/condition-while/f21165ed31f3.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition/39e6765d773f.cs b/corpus/c-sharp/condition/39e6765d773f.cs new file mode 100644 index 00000000..cd328cc1 --- /dev/null +++ b/corpus/c-sharp/condition/39e6765d773f.cs @@ -0,0 +1 @@ +if (x) {} \ No newline at end of file diff --git a/corpus/c-sharp/condition/39e6765d773f.mutation.json b/corpus/c-sharp/condition/39e6765d773f.mutation.json new file mode 100644 index 00000000..a95108cc --- /dev/null +++ b/corpus/c-sharp/condition/39e6765d773f.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition/b492841e1c24.cs b/corpus/c-sharp/condition/b492841e1c24.cs new file mode 100644 index 00000000..d667a26e --- /dev/null +++ b/corpus/c-sharp/condition/b492841e1c24.cs @@ -0,0 +1 @@ +if (false) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition/b492841e1c24.mutation.json b/corpus/c-sharp/condition/b492841e1c24.mutation.json new file mode 100644 index 00000000..e7358b0a --- /dev/null +++ b/corpus/c-sharp/condition/b492841e1c24.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/condition/base.cs b/corpus/c-sharp/condition/base.cs new file mode 100644 index 00000000..585e3f31 --- /dev/null +++ b/corpus/c-sharp/condition/base.cs @@ -0,0 +1 @@ +if (x) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition/cae10f0911a4.cs b/corpus/c-sharp/condition/cae10f0911a4.cs new file mode 100644 index 00000000..26acc839 --- /dev/null +++ b/corpus/c-sharp/condition/cae10f0911a4.cs @@ -0,0 +1 @@ +if (true) { y(); } \ No newline at end of file diff --git a/corpus/c-sharp/condition/cae10f0911a4.mutation.json b/corpus/c-sharp/condition/cae10f0911a4.mutation.json new file mode 100644 index 00000000..095c1667 --- /dev/null +++ b/corpus/c-sharp/condition/cae10f0911a4.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/div-assign/15757d35f9f4.cs b/corpus/c-sharp/div-assign/15757d35f9f4.cs new file mode 100644 index 00000000..8c7f4251 --- /dev/null +++ b/corpus/c-sharp/div-assign/15757d35f9f4.cs @@ -0,0 +1 @@ +x /= -1; \ No newline at end of file diff --git a/corpus/c-sharp/div-assign/15757d35f9f4.mutation.json b/corpus/c-sharp/div-assign/15757d35f9f4.mutation.json new file mode 100644 index 00000000..49c0415f --- /dev/null +++ b/corpus/c-sharp/div-assign/15757d35f9f4.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/div-assign/18d429e2f216.cs b/corpus/c-sharp/div-assign/18d429e2f216.cs new file mode 100644 index 00000000..9417ead5 --- /dev/null +++ b/corpus/c-sharp/div-assign/18d429e2f216.cs @@ -0,0 +1 @@ +x /= 1; \ No newline at end of file diff --git a/corpus/c-sharp/div-assign/18d429e2f216.mutation.json b/corpus/c-sharp/div-assign/18d429e2f216.mutation.json new file mode 100644 index 00000000..72796080 --- /dev/null +++ b/corpus/c-sharp/div-assign/18d429e2f216.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/div-assign/44d95a347513.cs b/corpus/c-sharp/div-assign/44d95a347513.cs new file mode 100644 index 00000000..1e2186f7 --- /dev/null +++ b/corpus/c-sharp/div-assign/44d95a347513.cs @@ -0,0 +1 @@ +x *= 1; \ No newline at end of file diff --git a/corpus/c-sharp/div-assign/44d95a347513.mutation.json b/corpus/c-sharp/div-assign/44d95a347513.mutation.json new file mode 100644 index 00000000..8bfec3d1 --- /dev/null +++ b/corpus/c-sharp/div-assign/44d95a347513.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/div-assign/base.cs b/corpus/c-sharp/div-assign/base.cs new file mode 100644 index 00000000..9417ead5 --- /dev/null +++ b/corpus/c-sharp/div-assign/base.cs @@ -0,0 +1 @@ +x /= 1; \ No newline at end of file diff --git a/corpus/c-sharp/div-assign/d378c09abdab.cs b/corpus/c-sharp/div-assign/d378c09abdab.cs new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/c-sharp/div-assign/d378c09abdab.cs @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/c-sharp/div-assign/d378c09abdab.mutation.json b/corpus/c-sharp/div-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..e8014ac5 --- /dev/null +++ b/corpus/c-sharp/div-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/div-assign/f29a38c83a2b.cs b/corpus/c-sharp/div-assign/f29a38c83a2b.cs new file mode 100644 index 00000000..1d1b78ae --- /dev/null +++ b/corpus/c-sharp/div-assign/f29a38c83a2b.cs @@ -0,0 +1 @@ +x /= 0; \ No newline at end of file diff --git a/corpus/c-sharp/div-assign/f29a38c83a2b.mutation.json b/corpus/c-sharp/div-assign/f29a38c83a2b.mutation.json new file mode 100644 index 00000000..78a8c0cb --- /dev/null +++ b/corpus/c-sharp/div-assign/f29a38c83a2b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/literal-bool-false/4e6c082593d8.cs b/corpus/c-sharp/literal-bool-false/4e6c082593d8.cs new file mode 100644 index 00000000..16e0752e --- /dev/null +++ b/corpus/c-sharp/literal-bool-false/4e6c082593d8.cs @@ -0,0 +1 @@ +bool x = true; \ No newline at end of file diff --git a/corpus/c-sharp/literal-bool-false/4e6c082593d8.mutation.json b/corpus/c-sharp/literal-bool-false/4e6c082593d8.mutation.json new file mode 100644 index 00000000..03eb14d6 --- /dev/null +++ b/corpus/c-sharp/literal-bool-false/4e6c082593d8.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "kind": { + "Literal": "BoolFalse" + }, + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 14, + "byte": 14 + } + } + }, + "subst": "true" +} \ No newline at end of file diff --git a/corpus/c-sharp/literal-bool-false/base.cs b/corpus/c-sharp/literal-bool-false/base.cs new file mode 100644 index 00000000..1da9060c --- /dev/null +++ b/corpus/c-sharp/literal-bool-false/base.cs @@ -0,0 +1 @@ +bool x = false; \ No newline at end of file diff --git a/corpus/c-sharp/literal-bool-true/3657d3bbdb8b.cs b/corpus/c-sharp/literal-bool-true/3657d3bbdb8b.cs new file mode 100644 index 00000000..1da9060c --- /dev/null +++ b/corpus/c-sharp/literal-bool-true/3657d3bbdb8b.cs @@ -0,0 +1 @@ +bool x = false; \ No newline at end of file diff --git a/corpus/c-sharp/literal-bool-true/3657d3bbdb8b.mutation.json b/corpus/c-sharp/literal-bool-true/3657d3bbdb8b.mutation.json new file mode 100644 index 00000000..2fe6a87a --- /dev/null +++ b/corpus/c-sharp/literal-bool-true/3657d3bbdb8b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "kind": { + "Literal": "BoolTrue" + }, + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 13, + "byte": 13 + } + } + }, + "subst": "false" +} \ No newline at end of file diff --git a/corpus/c-sharp/literal-bool-true/base.cs b/corpus/c-sharp/literal-bool-true/base.cs new file mode 100644 index 00000000..16e0752e --- /dev/null +++ b/corpus/c-sharp/literal-bool-true/base.cs @@ -0,0 +1 @@ +bool x = true; \ No newline at end of file diff --git a/corpus/c-sharp/literal-number/2e395b9629e9.cs b/corpus/c-sharp/literal-number/2e395b9629e9.cs new file mode 100644 index 00000000..a3a8be20 --- /dev/null +++ b/corpus/c-sharp/literal-number/2e395b9629e9.cs @@ -0,0 +1 @@ +int x = -1; \ No newline at end of file diff --git a/corpus/c-sharp/literal-number/2e395b9629e9.mutation.json b/corpus/c-sharp/literal-number/2e395b9629e9.mutation.json new file mode 100644 index 00000000..00c6ace4 --- /dev/null +++ b/corpus/c-sharp/literal-number/2e395b9629e9.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/literal-number/5717848e538a.cs b/corpus/c-sharp/literal-number/5717848e538a.cs new file mode 100644 index 00000000..00e4b224 --- /dev/null +++ b/corpus/c-sharp/literal-number/5717848e538a.cs @@ -0,0 +1 @@ +int x = 0; \ No newline at end of file diff --git a/corpus/c-sharp/literal-number/5717848e538a.mutation.json b/corpus/c-sharp/literal-number/5717848e538a.mutation.json new file mode 100644 index 00000000..ee673f00 --- /dev/null +++ b/corpus/c-sharp/literal-number/5717848e538a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/literal-number/b1b0343cdc33.cs b/corpus/c-sharp/literal-number/b1b0343cdc33.cs new file mode 100644 index 00000000..e55685cf --- /dev/null +++ b/corpus/c-sharp/literal-number/b1b0343cdc33.cs @@ -0,0 +1 @@ +int x = 1; \ No newline at end of file diff --git a/corpus/c-sharp/literal-number/b1b0343cdc33.mutation.json b/corpus/c-sharp/literal-number/b1b0343cdc33.mutation.json new file mode 100644 index 00000000..056cc64b --- /dev/null +++ b/corpus/c-sharp/literal-number/b1b0343cdc33.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/literal-number/base.cs b/corpus/c-sharp/literal-number/base.cs new file mode 100644 index 00000000..bcb80945 --- /dev/null +++ b/corpus/c-sharp/literal-number/base.cs @@ -0,0 +1 @@ +int x = 42; \ No newline at end of file diff --git a/corpus/c-sharp/literal-string-empty/51b93771a0fd.cs b/corpus/c-sharp/literal-string-empty/51b93771a0fd.cs new file mode 100644 index 00000000..7dd1b17b --- /dev/null +++ b/corpus/c-sharp/literal-string-empty/51b93771a0fd.cs @@ -0,0 +1 @@ +string x = "bough"; \ No newline at end of file diff --git a/corpus/c-sharp/literal-string-empty/51b93771a0fd.mutation.json b/corpus/c-sharp/literal-string-empty/51b93771a0fd.mutation.json new file mode 100644 index 00000000..6698057f --- /dev/null +++ b/corpus/c-sharp/literal-string-empty/51b93771a0fd.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/literal-string-empty/base.cs b/corpus/c-sharp/literal-string-empty/base.cs new file mode 100644 index 00000000..e3ae9120 --- /dev/null +++ b/corpus/c-sharp/literal-string-empty/base.cs @@ -0,0 +1 @@ +string x = ""; \ No newline at end of file diff --git a/corpus/c-sharp/literal-string/base.cs b/corpus/c-sharp/literal-string/base.cs new file mode 100644 index 00000000..4cd9c41d --- /dev/null +++ b/corpus/c-sharp/literal-string/base.cs @@ -0,0 +1 @@ +string x = "hello"; \ No newline at end of file diff --git a/corpus/c-sharp/literal-string/d73a1d7e1e99.cs b/corpus/c-sharp/literal-string/d73a1d7e1e99.cs new file mode 100644 index 00000000..e3ae9120 --- /dev/null +++ b/corpus/c-sharp/literal-string/d73a1d7e1e99.cs @@ -0,0 +1 @@ +string x = ""; \ No newline at end of file diff --git a/corpus/c-sharp/literal-string/d73a1d7e1e99.mutation.json b/corpus/c-sharp/literal-string/d73a1d7e1e99.mutation.json new file mode 100644 index 00000000..819e7160 --- /dev/null +++ b/corpus/c-sharp/literal-string/d73a1d7e1e99.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/mul-assign/18d429e2f216.cs b/corpus/c-sharp/mul-assign/18d429e2f216.cs new file mode 100644 index 00000000..9417ead5 --- /dev/null +++ b/corpus/c-sharp/mul-assign/18d429e2f216.cs @@ -0,0 +1 @@ +x /= 1; \ No newline at end of file diff --git a/corpus/c-sharp/mul-assign/18d429e2f216.mutation.json b/corpus/c-sharp/mul-assign/18d429e2f216.mutation.json new file mode 100644 index 00000000..2e9345f3 --- /dev/null +++ b/corpus/c-sharp/mul-assign/18d429e2f216.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/mul-assign/44d95a347513.cs b/corpus/c-sharp/mul-assign/44d95a347513.cs new file mode 100644 index 00000000..1e2186f7 --- /dev/null +++ b/corpus/c-sharp/mul-assign/44d95a347513.cs @@ -0,0 +1 @@ +x *= 1; \ No newline at end of file diff --git a/corpus/c-sharp/mul-assign/44d95a347513.mutation.json b/corpus/c-sharp/mul-assign/44d95a347513.mutation.json new file mode 100644 index 00000000..72796080 --- /dev/null +++ b/corpus/c-sharp/mul-assign/44d95a347513.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/mul-assign/5c981c1aa09d.cs b/corpus/c-sharp/mul-assign/5c981c1aa09d.cs new file mode 100644 index 00000000..89207042 --- /dev/null +++ b/corpus/c-sharp/mul-assign/5c981c1aa09d.cs @@ -0,0 +1 @@ +x *= 0; \ No newline at end of file diff --git a/corpus/c-sharp/mul-assign/5c981c1aa09d.mutation.json b/corpus/c-sharp/mul-assign/5c981c1aa09d.mutation.json new file mode 100644 index 00000000..78a8c0cb --- /dev/null +++ b/corpus/c-sharp/mul-assign/5c981c1aa09d.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/mul-assign/base.cs b/corpus/c-sharp/mul-assign/base.cs new file mode 100644 index 00000000..1e2186f7 --- /dev/null +++ b/corpus/c-sharp/mul-assign/base.cs @@ -0,0 +1 @@ +x *= 1; \ No newline at end of file diff --git a/corpus/c-sharp/mul-assign/d378c09abdab.cs b/corpus/c-sharp/mul-assign/d378c09abdab.cs new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/c-sharp/mul-assign/d378c09abdab.cs @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/c-sharp/mul-assign/d378c09abdab.mutation.json b/corpus/c-sharp/mul-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..acb3d76f --- /dev/null +++ b/corpus/c-sharp/mul-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/mul-assign/efeed56b88b6.cs b/corpus/c-sharp/mul-assign/efeed56b88b6.cs new file mode 100644 index 00000000..682be401 --- /dev/null +++ b/corpus/c-sharp/mul-assign/efeed56b88b6.cs @@ -0,0 +1 @@ +x *= -1; \ No newline at end of file diff --git a/corpus/c-sharp/mul-assign/efeed56b88b6.mutation.json b/corpus/c-sharp/mul-assign/efeed56b88b6.mutation.json new file mode 100644 index 00000000..49c0415f --- /dev/null +++ b/corpus/c-sharp/mul-assign/efeed56b88b6.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/normal-assign/555ab882b770.cs b/corpus/c-sharp/normal-assign/555ab882b770.cs new file mode 100644 index 00000000..4aafedbe --- /dev/null +++ b/corpus/c-sharp/normal-assign/555ab882b770.cs @@ -0,0 +1 @@ +x = -1; \ No newline at end of file diff --git a/corpus/c-sharp/normal-assign/555ab882b770.mutation.json b/corpus/c-sharp/normal-assign/555ab882b770.mutation.json new file mode 100644 index 00000000..ac75543f --- /dev/null +++ b/corpus/c-sharp/normal-assign/555ab882b770.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/normal-assign/8cc605a5e77e.cs b/corpus/c-sharp/normal-assign/8cc605a5e77e.cs new file mode 100644 index 00000000..97375eae --- /dev/null +++ b/corpus/c-sharp/normal-assign/8cc605a5e77e.cs @@ -0,0 +1 @@ +x -= 1; \ No newline at end of file diff --git a/corpus/c-sharp/normal-assign/8cc605a5e77e.mutation.json b/corpus/c-sharp/normal-assign/8cc605a5e77e.mutation.json new file mode 100644 index 00000000..794b1eb5 --- /dev/null +++ b/corpus/c-sharp/normal-assign/8cc605a5e77e.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/normal-assign/9a32551472c0.cs b/corpus/c-sharp/normal-assign/9a32551472c0.cs new file mode 100644 index 00000000..5ec612db --- /dev/null +++ b/corpus/c-sharp/normal-assign/9a32551472c0.cs @@ -0,0 +1 @@ +x = 0; \ No newline at end of file diff --git a/corpus/c-sharp/normal-assign/9a32551472c0.mutation.json b/corpus/c-sharp/normal-assign/9a32551472c0.mutation.json new file mode 100644 index 00000000..c5c19b99 --- /dev/null +++ b/corpus/c-sharp/normal-assign/9a32551472c0.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/normal-assign/base.cs b/corpus/c-sharp/normal-assign/base.cs new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/c-sharp/normal-assign/base.cs @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/c-sharp/normal-assign/d378c09abdab.cs b/corpus/c-sharp/normal-assign/d378c09abdab.cs new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/c-sharp/normal-assign/d378c09abdab.cs @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/c-sharp/normal-assign/d378c09abdab.mutation.json b/corpus/c-sharp/normal-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..36cb8ccb --- /dev/null +++ b/corpus/c-sharp/normal-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/normal-assign/fdbf18e39a1b.cs b/corpus/c-sharp/normal-assign/fdbf18e39a1b.cs new file mode 100644 index 00000000..c2a8ba18 --- /dev/null +++ b/corpus/c-sharp/normal-assign/fdbf18e39a1b.cs @@ -0,0 +1 @@ +x += 1; \ No newline at end of file diff --git a/corpus/c-sharp/normal-assign/fdbf18e39a1b.mutation.json b/corpus/c-sharp/normal-assign/fdbf18e39a1b.mutation.json new file mode 100644 index 00000000..edd2db63 --- /dev/null +++ b/corpus/c-sharp/normal-assign/fdbf18e39a1b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/rem-assign/0ec8435f4989.cs b/corpus/c-sharp/rem-assign/0ec8435f4989.cs new file mode 100644 index 00000000..395bb864 --- /dev/null +++ b/corpus/c-sharp/rem-assign/0ec8435f4989.cs @@ -0,0 +1 @@ +x %= -1; \ No newline at end of file diff --git a/corpus/c-sharp/rem-assign/0ec8435f4989.mutation.json b/corpus/c-sharp/rem-assign/0ec8435f4989.mutation.json new file mode 100644 index 00000000..49c0415f --- /dev/null +++ b/corpus/c-sharp/rem-assign/0ec8435f4989.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/rem-assign/1cf6ffd73c70.cs b/corpus/c-sharp/rem-assign/1cf6ffd73c70.cs new file mode 100644 index 00000000..3b3e27b9 --- /dev/null +++ b/corpus/c-sharp/rem-assign/1cf6ffd73c70.cs @@ -0,0 +1 @@ +x %= 1; \ No newline at end of file diff --git a/corpus/c-sharp/rem-assign/1cf6ffd73c70.mutation.json b/corpus/c-sharp/rem-assign/1cf6ffd73c70.mutation.json new file mode 100644 index 00000000..72796080 --- /dev/null +++ b/corpus/c-sharp/rem-assign/1cf6ffd73c70.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/rem-assign/44d95a347513.cs b/corpus/c-sharp/rem-assign/44d95a347513.cs new file mode 100644 index 00000000..1e2186f7 --- /dev/null +++ b/corpus/c-sharp/rem-assign/44d95a347513.cs @@ -0,0 +1 @@ +x *= 1; \ No newline at end of file diff --git a/corpus/c-sharp/rem-assign/44d95a347513.mutation.json b/corpus/c-sharp/rem-assign/44d95a347513.mutation.json new file mode 100644 index 00000000..f16f754b --- /dev/null +++ b/corpus/c-sharp/rem-assign/44d95a347513.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/rem-assign/abbe4db95f9c.cs b/corpus/c-sharp/rem-assign/abbe4db95f9c.cs new file mode 100644 index 00000000..1d24f929 --- /dev/null +++ b/corpus/c-sharp/rem-assign/abbe4db95f9c.cs @@ -0,0 +1 @@ +x %= 0; \ No newline at end of file diff --git a/corpus/c-sharp/rem-assign/abbe4db95f9c.mutation.json b/corpus/c-sharp/rem-assign/abbe4db95f9c.mutation.json new file mode 100644 index 00000000..78a8c0cb --- /dev/null +++ b/corpus/c-sharp/rem-assign/abbe4db95f9c.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/rem-assign/base.cs b/corpus/c-sharp/rem-assign/base.cs new file mode 100644 index 00000000..3b3e27b9 --- /dev/null +++ b/corpus/c-sharp/rem-assign/base.cs @@ -0,0 +1 @@ +x %= 1; \ No newline at end of file diff --git a/corpus/c-sharp/rem-assign/d378c09abdab.cs b/corpus/c-sharp/rem-assign/d378c09abdab.cs new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/c-sharp/rem-assign/d378c09abdab.cs @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/c-sharp/rem-assign/d378c09abdab.mutation.json b/corpus/c-sharp/rem-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..2a4765bc --- /dev/null +++ b/corpus/c-sharp/rem-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/shl-assign/6e3f25f10733.cs b/corpus/c-sharp/shl-assign/6e3f25f10733.cs new file mode 100644 index 00000000..ef532bb6 --- /dev/null +++ b/corpus/c-sharp/shl-assign/6e3f25f10733.cs @@ -0,0 +1 @@ +x <<= -1; \ No newline at end of file diff --git a/corpus/c-sharp/shl-assign/6e3f25f10733.mutation.json b/corpus/c-sharp/shl-assign/6e3f25f10733.mutation.json new file mode 100644 index 00000000..84563027 --- /dev/null +++ b/corpus/c-sharp/shl-assign/6e3f25f10733.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/shl-assign/7ca5b4d2bdb5.cs b/corpus/c-sharp/shl-assign/7ca5b4d2bdb5.cs new file mode 100644 index 00000000..35e8bb24 --- /dev/null +++ b/corpus/c-sharp/shl-assign/7ca5b4d2bdb5.cs @@ -0,0 +1 @@ +x >>= 1; \ No newline at end of file diff --git a/corpus/c-sharp/shl-assign/7ca5b4d2bdb5.mutation.json b/corpus/c-sharp/shl-assign/7ca5b4d2bdb5.mutation.json new file mode 100644 index 00000000..63da0117 --- /dev/null +++ b/corpus/c-sharp/shl-assign/7ca5b4d2bdb5.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/shl-assign/base.cs b/corpus/c-sharp/shl-assign/base.cs new file mode 100644 index 00000000..e41e2fa5 --- /dev/null +++ b/corpus/c-sharp/shl-assign/base.cs @@ -0,0 +1 @@ +x <<= 1; \ No newline at end of file diff --git a/corpus/c-sharp/shl-assign/d378c09abdab.cs b/corpus/c-sharp/shl-assign/d378c09abdab.cs new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/c-sharp/shl-assign/d378c09abdab.cs @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/c-sharp/shl-assign/d378c09abdab.mutation.json b/corpus/c-sharp/shl-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..9c1ac562 --- /dev/null +++ b/corpus/c-sharp/shl-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/shl-assign/f5e96ff63e7f.cs b/corpus/c-sharp/shl-assign/f5e96ff63e7f.cs new file mode 100644 index 00000000..149d5cc6 --- /dev/null +++ b/corpus/c-sharp/shl-assign/f5e96ff63e7f.cs @@ -0,0 +1 @@ +x <<= 0; \ No newline at end of file diff --git a/corpus/c-sharp/shl-assign/f5e96ff63e7f.mutation.json b/corpus/c-sharp/shl-assign/f5e96ff63e7f.mutation.json new file mode 100644 index 00000000..ef88cb61 --- /dev/null +++ b/corpus/c-sharp/shl-assign/f5e96ff63e7f.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/shl-assign/fdb2bd299d83.cs b/corpus/c-sharp/shl-assign/fdb2bd299d83.cs new file mode 100644 index 00000000..e41e2fa5 --- /dev/null +++ b/corpus/c-sharp/shl-assign/fdb2bd299d83.cs @@ -0,0 +1 @@ +x <<= 1; \ No newline at end of file diff --git a/corpus/c-sharp/shl-assign/fdb2bd299d83.mutation.json b/corpus/c-sharp/shl-assign/fdb2bd299d83.mutation.json new file mode 100644 index 00000000..2bbfff10 --- /dev/null +++ b/corpus/c-sharp/shl-assign/fdb2bd299d83.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/shr-assign/01152fd7c814.cs b/corpus/c-sharp/shr-assign/01152fd7c814.cs new file mode 100644 index 00000000..cad286e7 --- /dev/null +++ b/corpus/c-sharp/shr-assign/01152fd7c814.cs @@ -0,0 +1 @@ +x >>= -1; \ No newline at end of file diff --git a/corpus/c-sharp/shr-assign/01152fd7c814.mutation.json b/corpus/c-sharp/shr-assign/01152fd7c814.mutation.json new file mode 100644 index 00000000..84563027 --- /dev/null +++ b/corpus/c-sharp/shr-assign/01152fd7c814.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/shr-assign/7ca5b4d2bdb5.cs b/corpus/c-sharp/shr-assign/7ca5b4d2bdb5.cs new file mode 100644 index 00000000..35e8bb24 --- /dev/null +++ b/corpus/c-sharp/shr-assign/7ca5b4d2bdb5.cs @@ -0,0 +1 @@ +x >>= 1; \ No newline at end of file diff --git a/corpus/c-sharp/shr-assign/7ca5b4d2bdb5.mutation.json b/corpus/c-sharp/shr-assign/7ca5b4d2bdb5.mutation.json new file mode 100644 index 00000000..2bbfff10 --- /dev/null +++ b/corpus/c-sharp/shr-assign/7ca5b4d2bdb5.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/shr-assign/base.cs b/corpus/c-sharp/shr-assign/base.cs new file mode 100644 index 00000000..35e8bb24 --- /dev/null +++ b/corpus/c-sharp/shr-assign/base.cs @@ -0,0 +1 @@ +x >>= 1; \ No newline at end of file diff --git a/corpus/c-sharp/shr-assign/d378c09abdab.cs b/corpus/c-sharp/shr-assign/d378c09abdab.cs new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/c-sharp/shr-assign/d378c09abdab.cs @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/c-sharp/shr-assign/d378c09abdab.mutation.json b/corpus/c-sharp/shr-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..6cbb52a4 --- /dev/null +++ b/corpus/c-sharp/shr-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/shr-assign/d9f3a5614b7f.cs b/corpus/c-sharp/shr-assign/d9f3a5614b7f.cs new file mode 100644 index 00000000..b75a917d --- /dev/null +++ b/corpus/c-sharp/shr-assign/d9f3a5614b7f.cs @@ -0,0 +1 @@ +x >>= 0; \ No newline at end of file diff --git a/corpus/c-sharp/shr-assign/d9f3a5614b7f.mutation.json b/corpus/c-sharp/shr-assign/d9f3a5614b7f.mutation.json new file mode 100644 index 00000000..ef88cb61 --- /dev/null +++ b/corpus/c-sharp/shr-assign/d9f3a5614b7f.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/shr-assign/fdb2bd299d83.cs b/corpus/c-sharp/shr-assign/fdb2bd299d83.cs new file mode 100644 index 00000000..e41e2fa5 --- /dev/null +++ b/corpus/c-sharp/shr-assign/fdb2bd299d83.cs @@ -0,0 +1 @@ +x <<= 1; \ No newline at end of file diff --git a/corpus/c-sharp/shr-assign/fdb2bd299d83.mutation.json b/corpus/c-sharp/shr-assign/fdb2bd299d83.mutation.json new file mode 100644 index 00000000..59367f64 --- /dev/null +++ b/corpus/c-sharp/shr-assign/fdb2bd299d83.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/statement-block/4a488699a17e.cs b/corpus/c-sharp/statement-block/4a488699a17e.cs new file mode 100644 index 00000000..3af7632e --- /dev/null +++ b/corpus/c-sharp/statement-block/4a488699a17e.cs @@ -0,0 +1 @@ +void f() {} \ No newline at end of file diff --git a/corpus/c-sharp/statement-block/4a488699a17e.mutation.json b/corpus/c-sharp/statement-block/4a488699a17e.mutation.json new file mode 100644 index 00000000..ee11c141 --- /dev/null +++ b/corpus/c-sharp/statement-block/4a488699a17e.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/statement-block/base.cs b/corpus/c-sharp/statement-block/base.cs new file mode 100644 index 00000000..03683c17 --- /dev/null +++ b/corpus/c-sharp/statement-block/base.cs @@ -0,0 +1 @@ +void f() { return; } \ No newline at end of file diff --git a/corpus/c-sharp/sub-assign/38bc3e3fc5ec.cs b/corpus/c-sharp/sub-assign/38bc3e3fc5ec.cs new file mode 100644 index 00000000..56a7bbce --- /dev/null +++ b/corpus/c-sharp/sub-assign/38bc3e3fc5ec.cs @@ -0,0 +1 @@ +x -= 0; \ No newline at end of file diff --git a/corpus/c-sharp/sub-assign/38bc3e3fc5ec.mutation.json b/corpus/c-sharp/sub-assign/38bc3e3fc5ec.mutation.json new file mode 100644 index 00000000..78a8c0cb --- /dev/null +++ b/corpus/c-sharp/sub-assign/38bc3e3fc5ec.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/sub-assign/8cc605a5e77e.cs b/corpus/c-sharp/sub-assign/8cc605a5e77e.cs new file mode 100644 index 00000000..97375eae --- /dev/null +++ b/corpus/c-sharp/sub-assign/8cc605a5e77e.cs @@ -0,0 +1 @@ +x -= 1; \ No newline at end of file diff --git a/corpus/c-sharp/sub-assign/8cc605a5e77e.mutation.json b/corpus/c-sharp/sub-assign/8cc605a5e77e.mutation.json new file mode 100644 index 00000000..72796080 --- /dev/null +++ b/corpus/c-sharp/sub-assign/8cc605a5e77e.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/sub-assign/base.cs b/corpus/c-sharp/sub-assign/base.cs new file mode 100644 index 00000000..97375eae --- /dev/null +++ b/corpus/c-sharp/sub-assign/base.cs @@ -0,0 +1 @@ +x -= 1; \ No newline at end of file diff --git a/corpus/c-sharp/sub-assign/d378c09abdab.cs b/corpus/c-sharp/sub-assign/d378c09abdab.cs new file mode 100644 index 00000000..7ea47374 --- /dev/null +++ b/corpus/c-sharp/sub-assign/d378c09abdab.cs @@ -0,0 +1 @@ +x = 1; \ No newline at end of file diff --git a/corpus/c-sharp/sub-assign/d378c09abdab.mutation.json b/corpus/c-sharp/sub-assign/d378c09abdab.mutation.json new file mode 100644 index 00000000..3434495b --- /dev/null +++ b/corpus/c-sharp/sub-assign/d378c09abdab.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/sub-assign/ec842e2bcac5.cs b/corpus/c-sharp/sub-assign/ec842e2bcac5.cs new file mode 100644 index 00000000..578b65e6 --- /dev/null +++ b/corpus/c-sharp/sub-assign/ec842e2bcac5.cs @@ -0,0 +1 @@ +x -= -1; \ No newline at end of file diff --git a/corpus/c-sharp/sub-assign/ec842e2bcac5.mutation.json b/corpus/c-sharp/sub-assign/ec842e2bcac5.mutation.json new file mode 100644 index 00000000..49c0415f --- /dev/null +++ b/corpus/c-sharp/sub-assign/ec842e2bcac5.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/sub-assign/fdbf18e39a1b.cs b/corpus/c-sharp/sub-assign/fdbf18e39a1b.cs new file mode 100644 index 00000000..c2a8ba18 --- /dev/null +++ b/corpus/c-sharp/sub-assign/fdbf18e39a1b.cs @@ -0,0 +1 @@ +x += 1; \ No newline at end of file diff --git a/corpus/c-sharp/sub-assign/fdbf18e39a1b.mutation.json b/corpus/c-sharp/sub-assign/fdbf18e39a1b.mutation.json new file mode 100644 index 00000000..998ada95 --- /dev/null +++ b/corpus/c-sharp/sub-assign/fdbf18e39a1b.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/switch-case/3720768a7ad6.cs b/corpus/c-sharp/switch-case/3720768a7ad6.cs new file mode 100644 index 00000000..234f30b9 --- /dev/null +++ b/corpus/c-sharp/switch-case/3720768a7ad6.cs @@ -0,0 +1,5 @@ +switch (x) { + case 1: + break; + +} \ No newline at end of file diff --git a/corpus/c-sharp/switch-case/3720768a7ad6.mutation.json b/corpus/c-sharp/switch-case/3720768a7ad6.mutation.json new file mode 100644 index 00000000..6a4a33e4 --- /dev/null +++ b/corpus/c-sharp/switch-case/3720768a7ad6.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/switch-case/42ea40a55ee1.cs b/corpus/c-sharp/switch-case/42ea40a55ee1.cs new file mode 100644 index 00000000..5fb9e7a3 --- /dev/null +++ b/corpus/c-sharp/switch-case/42ea40a55ee1.cs @@ -0,0 +1,6 @@ +switch (x) { + case 1: + break; + case 1: + break; +} \ No newline at end of file diff --git a/corpus/c-sharp/switch-case/42ea40a55ee1.mutation.json b/corpus/c-sharp/switch-case/42ea40a55ee1.mutation.json new file mode 100644 index 00000000..d8499bef --- /dev/null +++ b/corpus/c-sharp/switch-case/42ea40a55ee1.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/switch-case/4cf6b6c78c83.cs b/corpus/c-sharp/switch-case/4cf6b6c78c83.cs new file mode 100644 index 00000000..37d24a60 --- /dev/null +++ b/corpus/c-sharp/switch-case/4cf6b6c78c83.cs @@ -0,0 +1,6 @@ +switch (x) { + case 1: + break; + case 2: + break; +} \ No newline at end of file diff --git a/corpus/c-sharp/switch-case/4cf6b6c78c83.mutation.json b/corpus/c-sharp/switch-case/4cf6b6c78c83.mutation.json new file mode 100644 index 00000000..18be0ede --- /dev/null +++ b/corpus/c-sharp/switch-case/4cf6b6c78c83.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/switch-case/8df5dca84e20.cs b/corpus/c-sharp/switch-case/8df5dca84e20.cs new file mode 100644 index 00000000..be0af583 --- /dev/null +++ b/corpus/c-sharp/switch-case/8df5dca84e20.cs @@ -0,0 +1,6 @@ +switch (x) { + case 0: + break; + case 2: + break; +} \ No newline at end of file diff --git a/corpus/c-sharp/switch-case/8df5dca84e20.mutation.json b/corpus/c-sharp/switch-case/8df5dca84e20.mutation.json new file mode 100644 index 00000000..ab1438c4 --- /dev/null +++ b/corpus/c-sharp/switch-case/8df5dca84e20.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/switch-case/9e432f337ea3.cs b/corpus/c-sharp/switch-case/9e432f337ea3.cs new file mode 100644 index 00000000..9a4f9c79 --- /dev/null +++ b/corpus/c-sharp/switch-case/9e432f337ea3.cs @@ -0,0 +1,6 @@ +switch (x) { + case 1: + break; + case 0: + break; +} \ No newline at end of file diff --git a/corpus/c-sharp/switch-case/9e432f337ea3.mutation.json b/corpus/c-sharp/switch-case/9e432f337ea3.mutation.json new file mode 100644 index 00000000..fd2454fe --- /dev/null +++ b/corpus/c-sharp/switch-case/9e432f337ea3.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/switch-case/a1d9ae21512a.cs b/corpus/c-sharp/switch-case/a1d9ae21512a.cs new file mode 100644 index 00000000..f0a1c41e --- /dev/null +++ b/corpus/c-sharp/switch-case/a1d9ae21512a.cs @@ -0,0 +1,6 @@ +switch (x) { + case -1: + break; + case 2: + break; +} \ No newline at end of file diff --git a/corpus/c-sharp/switch-case/a1d9ae21512a.mutation.json b/corpus/c-sharp/switch-case/a1d9ae21512a.mutation.json new file mode 100644 index 00000000..3070cf60 --- /dev/null +++ b/corpus/c-sharp/switch-case/a1d9ae21512a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/switch-case/b45a4dd2b5d9.cs b/corpus/c-sharp/switch-case/b45a4dd2b5d9.cs new file mode 100644 index 00000000..9837c708 --- /dev/null +++ b/corpus/c-sharp/switch-case/b45a4dd2b5d9.cs @@ -0,0 +1,5 @@ +switch (x) { + + case 2: + break; +} \ No newline at end of file diff --git a/corpus/c-sharp/switch-case/b45a4dd2b5d9.mutation.json b/corpus/c-sharp/switch-case/b45a4dd2b5d9.mutation.json new file mode 100644 index 00000000..c178f262 --- /dev/null +++ b/corpus/c-sharp/switch-case/b45a4dd2b5d9.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/switch-case/base.cs b/corpus/c-sharp/switch-case/base.cs new file mode 100644 index 00000000..37d24a60 --- /dev/null +++ b/corpus/c-sharp/switch-case/base.cs @@ -0,0 +1,6 @@ +switch (x) { + case 1: + break; + case 2: + break; +} \ No newline at end of file diff --git a/corpus/c-sharp/switch-case/dd27367f621a.cs b/corpus/c-sharp/switch-case/dd27367f621a.cs new file mode 100644 index 00000000..03d8bbc5 --- /dev/null +++ b/corpus/c-sharp/switch-case/dd27367f621a.cs @@ -0,0 +1,6 @@ +switch (x) { + case 1: + break; + case -1: + break; +} \ No newline at end of file diff --git a/corpus/c-sharp/switch-case/dd27367f621a.mutation.json b/corpus/c-sharp/switch-case/dd27367f621a.mutation.json new file mode 100644 index 00000000..34989a8e --- /dev/null +++ b/corpus/c-sharp/switch-case/dd27367f621a.mutation.json @@ -0,0 +1,36 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "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/c-sharp/unary-not/1d99970c58a9.cs b/corpus/c-sharp/unary-not/1d99970c58a9.cs new file mode 100644 index 00000000..fa9b11f5 --- /dev/null +++ b/corpus/c-sharp/unary-not/1d99970c58a9.cs @@ -0,0 +1 @@ +bool x = y; \ No newline at end of file diff --git a/corpus/c-sharp/unary-not/1d99970c58a9.mutation.json b/corpus/c-sharp/unary-not/1d99970c58a9.mutation.json new file mode 100644 index 00000000..20d81268 --- /dev/null +++ b/corpus/c-sharp/unary-not/1d99970c58a9.mutation.json @@ -0,0 +1,34 @@ +{ + "mutant": { + "lang": "cs", + "twig": [ + "src/a.cs" + ], + "kind": "UnaryNot", + "subst_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 10, + "byte": 10 + } + }, + "effect_span": { + "start": { + "line": 0, + "col": 9, + "byte": 9 + }, + "end": { + "line": 0, + "col": 11, + "byte": 11 + } + } + }, + "subst": "" +} \ No newline at end of file diff --git a/corpus/c-sharp/unary-not/base.cs b/corpus/c-sharp/unary-not/base.cs new file mode 100644 index 00000000..e21dd053 --- /dev/null +++ b/corpus/c-sharp/unary-not/base.cs @@ -0,0 +1 @@ +bool 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 7fd1228a..7ffae33e 100644 --- a/crates/bough-cli/src/render.rs +++ b/crates/bough-cli/src/render.rs @@ -389,6 +389,7 @@ impl Render for LanguageId { LanguageId::C => "c", LanguageId::Go => "go", LanguageId::Java => "java", + LanguageId::CSharp => "cs", } ) } @@ -403,6 +404,7 @@ impl Render for LanguageId { LanguageId::C => "C", LanguageId::Go => "Go", LanguageId::Java => "Java", + LanguageId::CSharp => "C#", } ) } @@ -415,6 +417,7 @@ impl Render for LanguageId { LanguageId::C => r#""c""#.to_string(), LanguageId::Go => r#""go""#.to_string(), LanguageId::Java => r#""java""#.to_string(), + LanguageId::CSharp => r#""cs""#.to_string(), } } } diff --git a/crates/bough-cli/src/show_single_mutation.rs b/crates/bough-cli/src/show_single_mutation.rs index 147da3c3..2478ba0b 100644 --- a/crates/bough-cli/src/show_single_mutation.rs +++ b/crates/bough-cli/src/show_single_mutation.rs @@ -57,6 +57,7 @@ impl ShowSingleMutation { LanguageId::C => "c", LanguageId::Go => "go", LanguageId::Java => "java", + LanguageId::CSharp => "csharp", } } } diff --git a/crates/bough-core/Cargo.toml b/crates/bough-core/Cargo.toml index 97322ad2..07c41460 100644 --- a/crates/bough-core/Cargo.toml +++ b/crates/bough-core/Cargo.toml @@ -24,6 +24,7 @@ arborium-python = "2.16" arborium-c = "2.16" arborium-go = "2.16" arborium-java = "2.16" +arborium-c-sharp = "2.16" wait-timeout = "0.2" libc = "0.2" tracing = "0.1" diff --git a/crates/bough-core/src/language/cs.rs b/crates/bough-core/src/language/cs.rs new file mode 100644 index 00000000..3b677781 --- /dev/null +++ b/crates/bough-core/src/language/cs.rs @@ -0,0 +1,259 @@ +use super::LanguageDriver; +use crate::mutant::{ + AssignMutationKind, BinaryOpMutationKind, LiteralKind, MutantKind, Span, span_from_node, +}; +use tracing::trace; + +pub(crate) struct CSharpDriver; + +impl LanguageDriver for CSharpDriver { + fn ts_language(&self) -> arborium_tree_sitter::Language { + arborium_c_sharp::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 condition = node.child_by_field_name("condition")?; + Some(( + MutantKind::Condition, + span_from_node(&condition), + 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_section" => { + let span = span_from_node(node); + Some((MutantKind::SwitchCase, span.clone(), span)) + } + "integer_literal" | "real_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, + )) + } + "initializer_expression" => { + if node.named_child_count() == 0 { + return None; + } + let span = span_from_node(node); + Some(( + MutantKind::ArrayDecl(crate::mutant::ArrayDeclKind::Inline), + span.clone(), + span, + )) + } + "prefix_unary_expression" => { + let op_text = node.child(0)?.utf8_text(file_content).ok()?; + if op_text == "!" { + let op_node = node.child(0)?; + Some(( + MutantKind::UnaryNot, + span_from_node(&op_node), + span_from_node(node), + )) + } else { + None + } + } + _ => None, + }; + if let Some((ref kind, ref span, _)) = result { + trace!(node_kind = node.kind(), mutant_kind = ?kind, start_byte = span.start().byte(), "cs: 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()], + _ => vec![], + } + } + + fn is_context_boundary(&self, node: &arborium_tree_sitter::Node<'_>) -> bool { + matches!( + node.kind(), + "method_declaration" + | "constructor_declaration" + | "class_declaration" + | "local_function_statement" + | "property_declaration" + ) + } +} + +#[cfg(test)] +mod tests { + fn dump_tree(src: &str) { + let lang: arborium_tree_sitter::Language = arborium_c_sharp::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 2830af23..fe22de67 100644 --- a/crates/bough-core/src/language/mod.rs +++ b/crates/bough-core/src/language/mod.rs @@ -1,4 +1,5 @@ mod c; +mod cs; mod go; mod java; mod javascript; @@ -6,6 +7,7 @@ mod python; mod typescript; pub(crate) use c::CDriver; +pub(crate) use cs::CSharpDriver; pub(crate) use go::GoDriver; pub(crate) use java::JavaDriver; pub(crate) use javascript::JavascriptDriver; @@ -37,5 +39,6 @@ pub(crate) fn driver_for_lang(lang: crate::LanguageId) -> Box Box::new(CDriver), crate::LanguageId::Go => Box::new(GoDriver), crate::LanguageId::Java => Box::new(JavaDriver), + crate::LanguageId::CSharp => Box::new(CSharpDriver), } } diff --git a/crates/bough-core/src/lib.rs b/crates/bough-core/src/lib.rs index f8fa7e70..8c760c0b 100644 --- a/crates/bough-core/src/lib.rs +++ b/crates/bough-core/src/lib.rs @@ -41,6 +41,8 @@ pub enum LanguageId { Go, #[facet(rename = "java")] Java, + #[facet(rename = "cs")] + CSharp, } impl LanguageId { @@ -51,6 +53,7 @@ impl LanguageId { LanguageId::C, LanguageId::Go, LanguageId::Java, + LanguageId::CSharp, ]; pub fn substitutions(&self, kind: &MutantKind) -> Vec { @@ -65,6 +68,7 @@ impl LanguageId { LanguageId::C => "c", LanguageId::Go => "go", LanguageId::Java => "java", + LanguageId::CSharp => "cs", } } @@ -76,6 +80,7 @@ impl LanguageId { LanguageId::C => "C", LanguageId::Go => "Go", LanguageId::Java => "Java", + LanguageId::CSharp => "C#", } } @@ -87,6 +92,7 @@ impl LanguageId { LanguageId::C => "c", LanguageId::Go => "go", LanguageId::Java => "java", + LanguageId::CSharp => "c-sharp", } } diff --git a/crates/bough-corpus-tests/build.rs b/crates/bough-corpus-tests/build.rs index b93f7c87..aff46ba3 100644 --- a/crates/bough-corpus-tests/build.rs +++ b/crates/bough-corpus-tests/build.rs @@ -36,6 +36,7 @@ fn main() { "c" => "bough_core::LanguageId::C", "go" => "bough_core::LanguageId::Go", "java" => "bough_core::LanguageId::Java", + "c-sharp" => "bough_core::LanguageId::CSharp", _ => continue, }; @@ -46,6 +47,7 @@ fn main() { "c" => "c", "go" => "go", "java" => "java", + "c-sharp" => "cs", _ => continue, }; @@ -81,7 +83,8 @@ fn main() { } for (lang, cases) in &modules { - writeln!(out, "mod {lang} {{").unwrap(); + let mod_name = lang.replace('-', "_"); + writeln!(out, "mod {mod_name} {{").unwrap(); for (fn_name, case_path, lang_id, ext) in cases { writeln!(out, " #[test]").unwrap(); writeln!(out, " fn {fn_name}() {{").unwrap(); diff --git a/crates/bough-docs-cli/Cargo.toml b/crates/bough-docs-cli/Cargo.toml index 42fee094..c4e48153 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-java", "lang-javascript", "lang-typescript", "lang-python", "lang-toml", "lang-bash", "lang-json", "lang-html", "lang-css"] } +"lang-c", "lang-c-sharp", "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"] }