1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +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 21:40:07 +03:00
"sha1": "181d9807930d201a183c1799b271ec7d6267a26d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "1af2906af6d949b4c5d5f6ceaa64df44470104e4"
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 21:40:07 +03:00
"sha1": "1af2906af6d949b4c5d5f6ceaa64df44470104e4",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "f856a499264206367a551cebe58a4e4f67cc8007"
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 21:40:07 +03:00
"sha1": "f856a499264206367a551cebe58a4e4f67cc8007",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "105324cf7f7c16d0e74b689d04a2fc86bf5f0337"
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 21:40:07 +03:00
"sha1": "105324cf7f7c16d0e74b689d04a2fc86bf5f0337",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "a75cebf98525431d9bff8973722a47315fad481d"
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 21:40:07 +03:00
"sha1": "a75cebf98525431d9bff8973722a47315fad481d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "19ecb71d42b69184d1aa796cd1f103d70815ff76"
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 21:40:07 +03:00
"sha1": "19ecb71d42b69184d1aa796cd1f103d70815ff76",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "cbe6e3eefef44bdee4618854e5436c6693da110f"
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 21:40:07 +03:00
"sha1": "cbe6e3eefef44bdee4618854e5436c6693da110f",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "367aef0cdd3bdd1e9bece657984d068d3dfa0841"
2016-10-11 18:12:20 +03:00
}]