1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 02:14:20 +03:00
semantic/test/corpus/diff-summaries/javascript/identifier.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -05:00

287 lines
8.6 KiB
JSON

[{
"testCaseDescription": "javascript-identifier-insert-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'theVar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"sha1": "ce7c81be19fcdd12c1d61a8c7a1c999860b4280b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3bea1e879959da42302446f858acbfd5c089fa90"
}
,{
"testCaseDescription": "javascript-identifier-replacement-insert-test",
"expectedResult": {
"changes": {
"identifier.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": [
"identifier.js"
],
"sha1": "3bea1e879959da42302446f858acbfd5c089fa90",
"gitDir": "test/corpus/repos/javascript",
"sha2": "126f86c0b5562b3b98c491fd69828b6ae4a3e1e8"
}
,{
"testCaseDescription": "javascript-identifier-delete-insert-test",
"expectedResult": {
"changes": {
"identifier.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": [
"identifier.js"
],
"sha1": "126f86c0b5562b3b98c491fd69828b6ae4a3e1e8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c0439a405e4223612fa11aa963643a6ee323515d"
}
,{
"testCaseDescription": "javascript-identifier-replacement-test",
"expectedResult": {
"changes": {
"identifier.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": [
"identifier.js"
],
"sha1": "c0439a405e4223612fa11aa963643a6ee323515d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "93ce01e7f38a9e4dc42fc2e111380d564ca20f3d"
}
,{
"testCaseDescription": "javascript-identifier-delete-replacement-test",
"expectedResult": {
"changes": {
"identifier.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": [
"identifier.js"
],
"sha1": "93ce01e7f38a9e4dc42fc2e111380d564ca20f3d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4af02ddb0217425e4c61c89cc12afa353f838a4b"
}
,{
"testCaseDescription": "javascript-identifier-delete-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'theVar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"sha1": "4af02ddb0217425e4c61c89cc12afa353f838a4b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3d8b222b75c6216026fadd617db43bb58571b6d7"
}
,{
"testCaseDescription": "javascript-identifier-delete-rest-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'theVar2' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"sha1": "3d8b222b75c6216026fadd617db43bb58571b6d7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d23325d922973a6d7b3a0e4c919269eb8da3acc7"
}]