1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
semantic/test/corpus/diff-summaries/javascript/variable.json
2016-10-11 15:13:51 -04:00

297 lines
8.9 KiB
JSON

[{
"testCaseDescription": "javascript-variable-insert-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'theVar' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "2074bb33669e57e62f87e701e4265cf784b19e58",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8b059350148dcffeee8ccd9366ad66c7d1cef915"
}
,{
"testCaseDescription": "javascript-variable-replacement-insert-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Added the 'theVar2' identifier",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'theVar' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "8b059350148dcffeee8ccd9366ad66c7d1cef915",
"gitDir": "test/corpus/repos/javascript",
"sha2": "90ab826472b30886ece143bfb81316b6a727943a"
}
,{
"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",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "90ab826472b30886ece143bfb81316b6a727943a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "44ab672853770a8141287a7f6b99064f9138cb77"
}
,{
"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",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "44ab672853770a8141287a7f6b99064f9138cb77",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5952e6fbb59faeda16dd0ce1ded38dcd90f1b587"
}
,{
"testCaseDescription": "javascript-variable-delete-replacement-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'theVar2' identifier",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'theVar' identifier",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'theVar2' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "5952e6fbb59faeda16dd0ce1ded38dcd90f1b587",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bf907d6d61c4fe246ce406e7fe04f0aafe39782c"
}
,{
"testCaseDescription": "javascript-variable-delete-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'theVar' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "bf907d6d61c4fe246ce406e7fe04f0aafe39782c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e044481441f48984c54cab43b37b7a07696be1c8"
}
,{
"testCaseDescription": "javascript-variable-delete-rest-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'theVar2' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "e044481441f48984c54cab43b37b7a07696be1c8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1ecef9aa25c5f5b2d024632f76333266bbaa3b08"
}]