1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/variable.json
2016-10-13 18:02:14 -04:00

287 lines
8.5 KiB
JSON

[{
"testCaseDescription": "javascript-variable-insert-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'theVar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "19decacdfae8c915beac36516e5d5163aa337bbb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0f2549ac5f04c4c069243d5f5acd34a59a87792a"
}
,{
"testCaseDescription": "javascript-variable-replacement-insert-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Added the 'theVar2' identifier"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'theVar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "0f2549ac5f04c4c069243d5f5acd34a59a87792a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "511f2d68b55b58a0a7bc7971fd7e187424323ec9"
}
,{
"testCaseDescription": "javascript-variable-delete-insert-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
8
]
},
{
"start": [
1,
1
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'theVar2' identifier with the 'theVar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "511f2d68b55b58a0a7bc7971fd7e187424323ec9",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b7d77afa5fc24eee42a3186c6c07930f6d648b8c"
}
,{
"testCaseDescription": "javascript-variable-replacement-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
7
]
},
{
"start": [
1,
1
],
"end": [
1,
8
]
}
]
},
"summary": "Replaced the 'theVar' identifier with the 'theVar2' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "b7d77afa5fc24eee42a3186c6c07930f6d648b8c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ffebc8ca576e0ed4dd45e2b8a04bffeeed9bcaa3"
}
,{
"testCaseDescription": "javascript-variable-delete-replacement-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'theVar2' identifier"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'theVar' identifier"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'theVar2' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "ffebc8ca576e0ed4dd45e2b8a04bffeeed9bcaa3",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a4fbc5631230e1d35e2087e2a22378ef8cd183f4"
}
,{
"testCaseDescription": "javascript-variable-delete-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'theVar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "a4fbc5631230e1d35e2087e2a22378ef8cd183f4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b90f9276ffab24e1a416ae983dfc3d80958bfbf3"
}
,{
"testCaseDescription": "javascript-variable-delete-rest-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'theVar2' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "b90f9276ffab24e1a416ae983dfc3d80958bfbf3",
"gitDir": "test/corpus/repos/javascript",
"sha2": "482c6b4a3d148a1044307d404fb6b885282052ec"
}]