mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
309 lines
9.8 KiB
JSON
309 lines
9.8 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-for-statement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-statement.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "for-statement.js",
|
|
"end": [
|
|
1,
|
|
45
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i = 0, init(); i < 10; i++' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-statement.js"
|
|
],
|
|
"sha1": "761990749004312c4b5e474eeacb839376523f0b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "720e97a0bc939ae883e7bbe18a84f02b8abeeb7a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-statement-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-statement.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "for-statement.js",
|
|
"end": [
|
|
1,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i = 0, init(); i < 100; i++' for statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "for-statement.js",
|
|
"end": [
|
|
2,
|
|
45
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i = 0, init(); i < 10; i++' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-statement.js"
|
|
],
|
|
"sha1": "720e97a0bc939ae883e7bbe18a84f02b8abeeb7a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f4a0a3f223f66ace49c2e2894579639324035b85"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-statement-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-statement.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"name": "for-statement.js",
|
|
"end": [
|
|
1,
|
|
28
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"name": "for-statement.js",
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '100' with '10'",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-statement.js"
|
|
],
|
|
"sha1": "f4a0a3f223f66ace49c2e2894579639324035b85",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b7aa4657257e1ff7e9018ca951c22d9c08f4ca5b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-statement-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-statement.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"name": "for-statement.js",
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"name": "for-statement.js",
|
|
"end": [
|
|
1,
|
|
28
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '10' with '100'",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-statement.js"
|
|
],
|
|
"sha1": "b7aa4657257e1ff7e9018ca951c22d9c08f4ca5b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d90fd03838f2ae92733c5d13db56c51f4dded714"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-statement-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-statement.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "for-statement.js",
|
|
"end": [
|
|
1,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i = 0, init(); i < 100; i++' for statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "for-statement.js",
|
|
"end": [
|
|
2,
|
|
45
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i = 0, init(); i < 10; i++' for statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "for-statement.js",
|
|
"end": [
|
|
2,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i = 0, init(); i < 100; i++' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-statement.js"
|
|
],
|
|
"sha1": "d90fd03838f2ae92733c5d13db56c51f4dded714",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6a61a685e17ba55bf3982bab2b696346df632862"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-statement-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-statement.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "for-statement.js",
|
|
"end": [
|
|
1,
|
|
45
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i = 0, init(); i < 10; i++' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-statement.js"
|
|
],
|
|
"sha1": "6a61a685e17ba55bf3982bab2b696346df632862",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2bdadc3ac8ea4e15f6f2d7b4a9d1d2cf3b0a9567"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-statement-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-statement.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "for-statement.js",
|
|
"end": [
|
|
1,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i = 0, init(); i < 100; i++' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-statement.js"
|
|
],
|
|
"sha1": "2bdadc3ac8ea4e15f6f2d7b4a9d1d2cf3b0a9567",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e66aa2b6bacc2bbd796427540227b298518b1389"
|
|
}]
|