mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
341 lines
11 KiB
JSON
341 lines
11 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-while-statement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"while-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' while statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"while-statement.js"
|
|
],
|
|
"sha1": "71988243c189f72eb85f1e1cd55497985877d654",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d5f57afe71f760ae7813dfb72cfae29dc1d6c64b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-while-statement-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"while-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' while statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' while statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"while-statement.js"
|
|
],
|
|
"sha1": "d5f57afe71f760ae7813dfb72cfae29dc1d6c64b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c8e4b51f10281abd737f463109fc84d58ffd38b9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-while-statement-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"while-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'a' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
13
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
13
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'b' identifier in the b() function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"while-statement.js"
|
|
],
|
|
"sha1": "c8e4b51f10281abd737f463109fc84d58ffd38b9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ed24674afbd2dd93ed7151956a6d1f9bf5ac8688"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-while-statement-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"while-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'b' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
13
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
13
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'a' identifier in the a() function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"while-statement.js"
|
|
],
|
|
"sha1": "ed24674afbd2dd93ed7151956a6d1f9bf5ac8688",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4f708ee9e3f3b8cdd336146a2216119057c5a36b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-while-statement-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"while-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' while statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' while statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' while statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"while-statement.js"
|
|
],
|
|
"sha1": "4f708ee9e3f3b8cdd336146a2216119057c5a36b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7e035715f0e11b2507f254fb555826f713894ca5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-while-statement-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"while-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' while statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"while-statement.js"
|
|
],
|
|
"sha1": "7e035715f0e11b2507f254fb555826f713894ca5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e8caded26600053bc44e2729f6991811a2b60f04"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-while-statement-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"while-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' while statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"while-statement.js"
|
|
],
|
|
"sha1": "e8caded26600053bc44e2729f6991811a2b60f04",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "72136f15085dd59d51ce542116b6fba21a73bb2c"
|
|
}]
|