1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00
semantic/test/corpus/diff-summaries/javascript/array.json
2016-11-03 16:02:56 -07:00

324 lines
9.3 KiB
JSON

[{
"testCaseDescription": "javascript-array-insert-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
12
]
}
},
"summary": "Added the '[ \"item1\" ]' array"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index e69de29..3335582 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -0,0 +1 @@",
"+[ \"item1\" ];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "654a538b26c9b4c8637e6c2e4cd497c93e690310..cbf013688399920af101ea056e9fba5ecba0601d"
}
,{
"testCaseDescription": "javascript-array-replacement-insert-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Added the '[ \"item1\", \"item2\" ]' array"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
12
]
}
},
"summary": "Added the '[ \"item1\" ]' array"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index 3335582..cf37d7c 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1 +1,3 @@",
"+[ \"item1\", \"item2\" ];",
"+[ \"item1\" ];",
" [ \"item1\" ];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "cbf013688399920af101ea056e9fba5ecba0601d..87e3b9ed3c5f26c596ad2b5da90359174c84f53c"
}
,{
"testCaseDescription": "javascript-array-delete-insert-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"delete": {
"start": [
1,
12
],
"end": [
1,
19
]
}
},
"summary": "Deleted the \"item2\" string"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index cf37d7c..c2cb17f 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1,3 +1,3 @@",
"-[ \"item1\", \"item2\" ];",
"+[ \"item1\" ];",
" [ \"item1\" ];",
" [ \"item1\" ];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "87e3b9ed3c5f26c596ad2b5da90359174c84f53c..ea49177e8ff82b772f7347682975cb1fa5e7b012"
}
,{
"testCaseDescription": "javascript-array-replacement-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"insert": {
"start": [
1,
12
],
"end": [
1,
19
]
}
},
"summary": "Added the \"item2\" string"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index c2cb17f..cf37d7c 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1,3 +1,3 @@",
"-[ \"item1\" ];",
"+[ \"item1\", \"item2\" ];",
" [ \"item1\" ];",
" [ \"item1\" ];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "ea49177e8ff82b772f7347682975cb1fa5e7b012..1e28fd793a6ab61ed59b28d8ee56b55be7ad79ec"
}
,{
"testCaseDescription": "javascript-array-delete-replacement-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Deleted the '[ \"item1\", \"item2\" ]' array"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
12
]
}
},
"summary": "Deleted the '[ \"item1\" ]' array"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
21
]
}
},
"summary": "Added the '[ \"item1\", \"item2\" ]' array"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index cf37d7c..a4d92b8 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1,3 +1,2 @@",
"-[ \"item1\", \"item2\" ];",
"-[ \"item1\" ];",
" [ \"item1\" ];",
"+[ \"item1\", \"item2\" ];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "1e28fd793a6ab61ed59b28d8ee56b55be7ad79ec..fdc62b5a013932e082ba61a576b8fb54cd1d0791"
}
,{
"testCaseDescription": "javascript-array-delete-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
12
]
}
},
"summary": "Deleted the '[ \"item1\" ]' array"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index a4d92b8..7f2f50e 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1,2 +1 @@",
"-[ \"item1\" ];",
" [ \"item1\", \"item2\" ];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "fdc62b5a013932e082ba61a576b8fb54cd1d0791..9e91959fe3d3ec022474f242a8456b900fdfd8d2"
}
,{
"testCaseDescription": "javascript-array-delete-rest-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Deleted the '[ \"item1\", \"item2\" ]' array"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index 7f2f50e..e69de29 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1 +0,0 @@",
"-[ \"item1\", \"item2\" ];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "9e91959fe3d3ec022474f242a8456b900fdfd8d2..0bdf412036a9a6aea51108a20404c37541fffcfb"
}]