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/identifier.json
2016-10-11 16:18:26 -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": "49074a4800a61fa651152d1ed712c66519fafbeb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7c6643be086c41a5cd376fbf7b36e2f7d33bc1bf"
}
,{
"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": "7c6643be086c41a5cd376fbf7b36e2f7d33bc1bf",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9714f432aec25fb2318e2dab9f9b2a78fc5cb22f"
}
,{
"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": "9714f432aec25fb2318e2dab9f9b2a78fc5cb22f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "93fd36c156a2e1bd23e2e5777f4b5b7e7a82c7cb"
}
,{
"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": "93fd36c156a2e1bd23e2e5777f4b5b7e7a82c7cb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cfb79cbb2bcd620edb55c909983e5e631a08c863"
}
,{
"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": "cfb79cbb2bcd620edb55c909983e5e631a08c863",
"gitDir": "test/corpus/repos/javascript",
"sha2": "106dff12bfb07dc175748db3ce6f8a6ace4a561a"
}
,{
"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": "106dff12bfb07dc175748db3ce6f8a6ace4a561a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "947a90cdedee234b01c85052f7bb112fb1e7eae0"
}
,{
"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": "947a90cdedee234b01c85052f7bb112fb1e7eae0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d7c66b2feea9aa25c92f9e3005737bcd96679136"
}]