1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/javascript/chained-callbacks.json

395 lines
13 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-chained-callbacks-insert-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
39
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'this.map(…)' method call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "1865c22f682da9c138bef45e2387721bf89f8b2b",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "4993a06d31de2ee6e298a9976eb0543211a2e48a"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-chained-callbacks-replacement-insert-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
42
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'this.reduce(…)' method call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
39
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'this.map(…)' method call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "4993a06d31de2ee6e298a9976eb0543211a2e48a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "2e2c683a3463b8c2905fdb3805a09028e326f0c6"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-chained-callbacks-delete-insert-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
6
],
"end": [
1,
12
]
},
{
"start": [
1,
6
],
"end": [
1,
9
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'reduce' identifier with the 'map' identifier in the this.map(…) method call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
35
],
"end": [
1,
36
]
},
{
"start": [
1,
32
],
"end": [
1,
33
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'b' identifier with the 'a' identifier in the this.map(…) method call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
37
],
"end": [
1,
38
]
},
{
"start": [
1,
34
],
"end": [
1,
35
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'a' identifier with the 'b' identifier in the this.map(…) method call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "2e2c683a3463b8c2905fdb3805a09028e326f0c6",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "9b71d27ed9e91daf4499ee22c858caddd7deb319"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-chained-callbacks-replacement-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
6
],
"end": [
1,
9
]
},
{
"start": [
1,
6
],
"end": [
1,
12
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'map' identifier with the 'reduce' identifier in the this.reduce(…) method call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
32
],
"end": [
1,
33
]
},
{
"start": [
1,
35
],
"end": [
1,
36
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'a' identifier with the 'b' identifier in the this.reduce(…) method call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
34
],
"end": [
1,
35
]
},
{
"start": [
1,
37
],
"end": [
1,
38
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'b' identifier with the 'a' identifier in the this.reduce(…) method call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "9b71d27ed9e91daf4499ee22c858caddd7deb319",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "61004874a11330455392eb2b212a7536f7967afe"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-chained-callbacks-delete-replacement-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
42
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'this.reduce(…)' method call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
39
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'this.map(…)' method call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
42
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'this.reduce(…)' method call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "61004874a11330455392eb2b212a7536f7967afe",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "dfde43f0d95cbe1f88f9c81d6e39defae8a2f289"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-chained-callbacks-delete-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
39
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'this.map(…)' method call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "dfde43f0d95cbe1f88f9c81d6e39defae8a2f289",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "ca0b4715b7ec98cb02ba3984a73d0cdc3e8c030f"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-chained-callbacks-delete-rest-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
42
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'this.reduce(…)' method call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "ca0b4715b7ec98cb02ba3984a73d0cdc3e8c030f",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "20c0101515fea6bdc19c425a3457aab307bb1afe"
2016-10-11 18:12:20 +03:00
}]