1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/identifier.json
2016-10-14 12:19:31 -04: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": "65573db715ec0e4bd1e8d66b6d55c16c2851dd0f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "87cbcc9911a7385eff63ac4bbea20c0a71c3a3fa"
}
,{
"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": "87cbcc9911a7385eff63ac4bbea20c0a71c3a3fa",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a25aecbc2a1d5b83af51a660c8b8ec735e343bb9"
}
,{
"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": "a25aecbc2a1d5b83af51a660c8b8ec735e343bb9",
"gitDir": "test/corpus/repos/javascript",
"sha2": "af4403d0da6ba7512bf86298d423bb8e6755eb40"
}
,{
"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": "af4403d0da6ba7512bf86298d423bb8e6755eb40",
"gitDir": "test/corpus/repos/javascript",
"sha2": "870d8c3be48b0993283ef5f3a7a6dd75e2f2e212"
}
,{
"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": "870d8c3be48b0993283ef5f3a7a6dd75e2f2e212",
"gitDir": "test/corpus/repos/javascript",
"sha2": "97084ee0716ceac15148b0a1bcccdc85471d9dde"
}
,{
"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": "97084ee0716ceac15148b0a1bcccdc85471d9dde",
"gitDir": "test/corpus/repos/javascript",
"sha2": "39f8849c2f95962fc292928fa40d000bba4ebc40"
}
,{
"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": "39f8849c2f95962fc292928fa40d000bba4ebc40",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8e71c0b3d7335cc35655cf5a548a4250324806a8"
}]