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/variable.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -05: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": "50417237185c7e054472c267c7c8cdc687328c13",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a5b334096cce07de573261d9633345f09f95a3ca"
}
,{
"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": "a5b334096cce07de573261d9633345f09f95a3ca",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c229060ff90fca8acfca1a93efe764286b49e049"
}
,{
"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": "c229060ff90fca8acfca1a93efe764286b49e049",
"gitDir": "test/corpus/repos/javascript",
"sha2": "58db86e1a79625f7b55b9f2ff00a1a4da45f1ba1"
}
,{
"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": "58db86e1a79625f7b55b9f2ff00a1a4da45f1ba1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "87a1e88ac3ee9957cc804883119d1acd7f417eb6"
}
,{
"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": "87a1e88ac3ee9957cc804883119d1acd7f417eb6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5c7b943407c1ad81a08465df84fc9be9369aaafb"
}
,{
"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": "5c7b943407c1ad81a08465df84fc9be9369aaafb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0b08245c7e7c1fc5b204b4db3139526c4755595b"
}
,{
"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": "0b08245c7e7c1fc5b204b4db3139526c4755595b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ce7c81be19fcdd12c1d61a8c7a1c999860b4280b"
}]