1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00
semantic/test/corpus/diff-summaries/javascript/array.json

324 lines
9.3 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-array-insert-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
12
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '[ \"item1\" ]' array"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index e69de29b..33355825 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -0,0 +1 @@",
"+[ \"item1\" ];"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "89b3d4cd2ef38999c223c69de3011646b1f43c24..82c5ec73355d6296c1bc8e6fbcd9606635930f42"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-array-replacement-insert-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
21
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '[ \"item1\", \"item2\" ]' array"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
12
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '[ \"item1\" ]' array"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index 33355825..cf37d7c1 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1 +1,3 @@",
"+[ \"item1\", \"item2\" ];",
"+[ \"item1\" ];",
" [ \"item1\" ];"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "82c5ec73355d6296c1bc8e6fbcd9606635930f42..2c0dab888be8bb07c850408ff7f3c918c9b2f679"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-array-delete-insert-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
12
],
"end": [
1,
19
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the \"item2\" string"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index cf37d7c1..c2cb17fa 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1,3 +1,3 @@",
"-[ \"item1\", \"item2\" ];",
"+[ \"item1\" ];",
" [ \"item1\" ];",
" [ \"item1\" ];"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "2c0dab888be8bb07c850408ff7f3c918c9b2f679..2836ffcd06212158191d83c6d23a76b86cd06aa6"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-array-replacement-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
12
],
"end": [
1,
19
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the \"item2\" string"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index c2cb17fa..cf37d7c1 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1,3 +1,3 @@",
"-[ \"item1\" ];",
"+[ \"item1\", \"item2\" ];",
" [ \"item1\" ];",
" [ \"item1\" ];"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "2836ffcd06212158191d83c6d23a76b86cd06aa6..6c43843105004658edd13b116c23d3feffc3efb7"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-array-delete-replacement-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
21
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '[ \"item1\", \"item2\" ]' array"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
12
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '[ \"item1\" ]' array"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
21
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '[ \"item1\", \"item2\" ]' array"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index cf37d7c1..a4d92b81 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1,3 +1,2 @@",
"-[ \"item1\", \"item2\" ];",
"-[ \"item1\" ];",
" [ \"item1\" ];",
"+[ \"item1\", \"item2\" ];"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "6c43843105004658edd13b116c23d3feffc3efb7..379a870647ba9da2b5faf25da3bd60c6d3983e47"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-array-delete-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
12
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '[ \"item1\" ]' array"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index a4d92b81..7f2f50e6 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1,2 +1 @@",
"-[ \"item1\" ];",
" [ \"item1\", \"item2\" ];"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "379a870647ba9da2b5faf25da3bd60c6d3983e47..ca784abe43a28e84e087f70495667e2d0cc5ed77"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-array-delete-rest-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
21
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '[ \"item1\", \"item2\" ]' array"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index 7f2f50e6..e69de29b 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1 +0,0 @@",
"-[ \"item1\", \"item2\" ];"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "ca784abe43a28e84e087f70495667e2d0cc5ed77..6a98861e426cf72452392e143d875b8ccd968a2c"
2016-10-11 18:12:20 +03:00
}]