mirror of
https://github.com/github/semantic.git
synced 2024-12-21 13:51:44 +03:00
429 lines
15 KiB
JSON
429 lines
15 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-chained-callbacks-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-callbacks.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this.map(…)' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "20bc26cc8af9efd835b023b026250f920bf1cc88",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8c05a8c012b065745a2da67a5a6e1bce328fd6b6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-callbacks-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-callbacks.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this.reduce(…)' method call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
2,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this.map(…)' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "8c05a8c012b065745a2da67a5a6e1bce328fd6b6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6869215944dfc529db1c0e731d0640f9a85d1040"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-callbacks-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-callbacks.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'reduce' identifier with the 'map' identifier in the this.map(…) method call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
36
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
32
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
33
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'a' identifier in the this.map(…) method call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
37
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
38
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
34
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
35
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'b' identifier in the this.map(…) method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "6869215944dfc529db1c0e731d0640f9a85d1040",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4c964599e2c3f646a49bd3c5a0ad7f28bb4e76f8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-callbacks-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-callbacks.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'map' identifier with the 'reduce' identifier in the this.reduce(…) method call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
32
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
33
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
36
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'b' identifier in the this.reduce(…) method call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
34
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
35
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
37
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
38
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'a' identifier in the this.reduce(…) method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "4c964599e2c3f646a49bd3c5a0ad7f28bb4e76f8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "20c8a9a737d91e365f686ac9ef3ea3ece6bcf5ed"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-callbacks-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-callbacks.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this.reduce(…)' method call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
2,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this.map(…)' method call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
2,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this.reduce(…)' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "20c8a9a737d91e365f686ac9ef3ea3ece6bcf5ed",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "883ffc29d09b541a5c4d9e4674d5c04f876a40a2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-callbacks-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-callbacks.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this.map(…)' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "883ffc29d09b541a5c4d9e4674d5c04f876a40a2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "76d7d961c5ea2ade3fdd136a056c683732a81a25"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-callbacks-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-callbacks.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this.reduce(…)' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "76d7d961c5ea2ade3fdd136a056c683732a81a25",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "bd29fccbe38961789cd724a6537993e68f491091"
|
|
}]
|