1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/chained-callbacks.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -05:00

395 lines
13 KiB
JSON

[{
"testCaseDescription": "javascript-chained-callbacks-insert-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
39
]
}
},
"summary": "Added the 'this.map(…)' method call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "181d9807930d201a183c1799b271ec7d6267a26d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1af2906af6d949b4c5d5f6ceaa64df44470104e4"
}
,{
"testCaseDescription": "javascript-chained-callbacks-replacement-insert-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Added the 'this.reduce(…)' method call"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
39
]
}
},
"summary": "Added the 'this.map(…)' method call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "1af2906af6d949b4c5d5f6ceaa64df44470104e4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f856a499264206367a551cebe58a4e4f67cc8007"
}
,{
"testCaseDescription": "javascript-chained-callbacks-delete-insert-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
12
]
},
{
"start": [
1,
6
],
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'reduce' identifier with the 'map' identifier in the this.map(…) method call"
},
{
"span": {
"replace": [
{
"start": [
1,
35
],
"end": [
1,
36
]
},
{
"start": [
1,
32
],
"end": [
1,
33
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier in the this.map(…) method call"
},
{
"span": {
"replace": [
{
"start": [
1,
37
],
"end": [
1,
38
]
},
{
"start": [
1,
34
],
"end": [
1,
35
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier in the this.map(…) method call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "f856a499264206367a551cebe58a4e4f67cc8007",
"gitDir": "test/corpus/repos/javascript",
"sha2": "105324cf7f7c16d0e74b689d04a2fc86bf5f0337"
}
,{
"testCaseDescription": "javascript-chained-callbacks-replacement-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
9
]
},
{
"start": [
1,
6
],
"end": [
1,
12
]
}
]
},
"summary": "Replaced the 'map' identifier with the 'reduce' identifier in the this.reduce(…) method call"
},
{
"span": {
"replace": [
{
"start": [
1,
32
],
"end": [
1,
33
]
},
{
"start": [
1,
35
],
"end": [
1,
36
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier in the this.reduce(…) method call"
},
{
"span": {
"replace": [
{
"start": [
1,
34
],
"end": [
1,
35
]
},
{
"start": [
1,
37
],
"end": [
1,
38
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier in the this.reduce(…) method call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "105324cf7f7c16d0e74b689d04a2fc86bf5f0337",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a75cebf98525431d9bff8973722a47315fad481d"
}
,{
"testCaseDescription": "javascript-chained-callbacks-delete-replacement-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Deleted the 'this.reduce(…)' method call"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
39
]
}
},
"summary": "Deleted the 'this.map(…)' method call"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
42
]
}
},
"summary": "Added the 'this.reduce(…)' method call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "a75cebf98525431d9bff8973722a47315fad481d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "19ecb71d42b69184d1aa796cd1f103d70815ff76"
}
,{
"testCaseDescription": "javascript-chained-callbacks-delete-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
39
]
}
},
"summary": "Deleted the 'this.map(…)' method call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "19ecb71d42b69184d1aa796cd1f103d70815ff76",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cbe6e3eefef44bdee4618854e5436c6693da110f"
}
,{
"testCaseDescription": "javascript-chained-callbacks-delete-rest-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Deleted the 'this.reduce(…)' method call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "cbe6e3eefef44bdee4618854e5436c6693da110f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "367aef0cdd3bdd1e9bece657984d068d3dfa0841"
}]