1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 22:01:46 +03:00
semantic/test/corpus/diff-summaries/javascript/array.json
2016-10-11 11:54:47 -04:00

283 lines
8.4 KiB
JSON

[{
"testCaseDescription": "javascript-array-insert-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "array.js",
"end": [
1,
12
]
}
},
"summary": "Added the '[ \"item1\" ]' array",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"sha1": "54c26c85b1720507e7c076553120465986fd2894",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f5bb66df169bf045026ba4442a4d974847db3489"
}
,{
"testCaseDescription": "javascript-array-replacement-insert-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "array.js",
"end": [
1,
21
]
}
},
"summary": "Added the '[ \"item1\", \"item2\" ]' array",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "array.js",
"end": [
2,
12
]
}
},
"summary": "Added the '[ \"item1\" ]' array",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"sha1": "f5bb66df169bf045026ba4442a4d974847db3489",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0cadc95617a4d5b8ed257445b10f7a78fcf7cf64"
}
,{
"testCaseDescription": "javascript-array-delete-insert-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"delete": {
"start": [
1,
12
],
"name": "array.js",
"end": [
1,
19
]
}
},
"summary": "Deleted the \"item2\" string",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"sha1": "0cadc95617a4d5b8ed257445b10f7a78fcf7cf64",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5e1cd2633508c891278e8107d436c8a5814c476d"
}
,{
"testCaseDescription": "javascript-array-replacement-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"insert": {
"start": [
1,
12
],
"name": "array.js",
"end": [
1,
19
]
}
},
"summary": "Added the \"item2\" string",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"sha1": "5e1cd2633508c891278e8107d436c8a5814c476d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5dfefcf9ca75459d4f86e85cfb73f1f538770740"
}
,{
"testCaseDescription": "javascript-array-delete-replacement-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "array.js",
"end": [
1,
21
]
}
},
"summary": "Deleted the '[ \"item1\", \"item2\" ]' array",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"name": "array.js",
"end": [
2,
12
]
}
},
"summary": "Deleted the '[ \"item1\" ]' array",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "array.js",
"end": [
2,
21
]
}
},
"summary": "Added the '[ \"item1\", \"item2\" ]' array",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"sha1": "5dfefcf9ca75459d4f86e85cfb73f1f538770740",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b8ede0fa6f522240174653fec41a06d409230f4c"
}
,{
"testCaseDescription": "javascript-array-delete-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "array.js",
"end": [
1,
12
]
}
},
"summary": "Deleted the '[ \"item1\" ]' array",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"sha1": "b8ede0fa6f522240174653fec41a06d409230f4c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cdccd002f81bf773a827a1be1f2c1740ac6c5606"
}
,{
"testCaseDescription": "javascript-array-delete-rest-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "array.js",
"end": [
1,
21
]
}
},
"summary": "Deleted the '[ \"item1\", \"item2\" ]' array",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"sha1": "cdccd002f81bf773a827a1be1f2c1740ac6c5606",
"gitDir": "test/corpus/repos/javascript",
"sha2": "294584bae27cd565886c9c1064c423ab7a04e42d"
}]