mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
287 lines
8.5 KiB
JSON
287 lines
8.5 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-assignment-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.js"
|
|
],
|
|
"sha1": "ed30328a2b750527b7feb8d1adc5058897a15914",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f940566ac9548a2d161d826a0f8a4e4ec21a0258"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-assignment-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.js"
|
|
],
|
|
"sha1": "f940566ac9548a2d161d826a0f8a4e4ec21a0258",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1ab81e01948ef1575c727173b85c9290becaa6d9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-assignment-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '1' with '0' in an assignment to x"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.js"
|
|
],
|
|
"sha1": "1ab81e01948ef1575c727173b85c9290becaa6d9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b9da824745612d68fc71b74e8633a9f82fd7b635"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-assignment-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '0' with '1' in an assignment to x"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.js"
|
|
],
|
|
"sha1": "b9da824745612d68fc71b74e8633a9f82fd7b635",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "bf610df003e0cfceb32b8b87d8040267f1d8e756"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-assignment-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.js"
|
|
],
|
|
"sha1": "bf610df003e0cfceb32b8b87d8040267f1d8e756",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6793691cbfbaa3e0fe84773a06c6837c2ffafbf4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-assignment-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.js"
|
|
],
|
|
"sha1": "6793691cbfbaa3e0fe84773a06c6837c2ffafbf4",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "637acfc42829d7f1cc97e0b377128a4e1a356922"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-assignment-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.js"
|
|
],
|
|
"sha1": "637acfc42829d7f1cc97e0b377128a4e1a356922",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8eca9e24dc00093b86a897d8157550a5706e7fd9"
|
|
}]
|