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/variable.json
2016-10-14 12:19:31 -04: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": "6e820addaccc82920214045105b37bfa1f39a32c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7ee285f5e30f9fa6f02a5aede8c5eac436205474"
}
,{
"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": "7ee285f5e30f9fa6f02a5aede8c5eac436205474",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2b656ffb0f98cf5a778cc2c1da1a5a02107493b7"
}
,{
"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": "2b656ffb0f98cf5a778cc2c1da1a5a02107493b7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "eb746fe7daa8bc14a58c2ca7b80795d6684f8df8"
}
,{
"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": "eb746fe7daa8bc14a58c2ca7b80795d6684f8df8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d9a66b4c917da45775e4fb840289b88c917a2770"
}
,{
"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": "d9a66b4c917da45775e4fb840289b88c917a2770",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8cb7fa64dc4f2a979ea36da537f3cf1c21eafe8d"
}
,{
"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": "8cb7fa64dc4f2a979ea36da537f3cf1c21eafe8d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "53e3ff63fb5a182407a1a0d173a61d8a9120af61"
}
,{
"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": "53e3ff63fb5a182407a1a0d173a61d8a9120af61",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c12b83e8ee5acc229578c1c25f6d15ce9bf9ed90"
}]