mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
409 lines
13 KiB
JSON
409 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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "9805a53f9fb8f6cd969d07ef2eeec2250fd12d04",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "95c5995bf1d9fd3208a872cd598032cece4a8bac"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this.map(…)' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "95c5995bf1d9fd3208a872cd598032cece4a8bac",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4b97bdc99bdd0ff6bb811ab647482f93444203d7"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "4b97bdc99bdd0ff6bb811ab647482f93444203d7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e925672c3d607a47dd28821be89fc163547f317a"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "e925672c3d607a47dd28821be89fc163547f317a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8f1ee6a59a82c0aa8e951dd4b2865f8105c4b9e4"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this.map(…)' method call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this.reduce(…)' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "8f1ee6a59a82c0aa8e951dd4b2865f8105c4b9e4",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fca34a1451c2b8708049c924710c971127d9efc0"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "fca34a1451c2b8708049c924710c971127d9efc0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "820ff2e5b738c2a4c6b67bb00137825db09eaf54"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "820ff2e5b738c2a4c6b67bb00137825db09eaf54",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d1e7f56a86f0ad76a52e486579b7319c4da64d38"
|
|
}]
|