mirror of
https://github.com/github/semantic.git
synced 2024-12-21 05:41:54 +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
|
|
],
|
|
"filepath": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this.map(…)' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "3c18b9342d8e60bf5c240ca798986c380dcf3110",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ef9e7888e6ba75fa08ff3a4884ec12b07aeac1d0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-callbacks-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-callbacks.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this.reduce(…)' method call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "chained-callbacks.js",
|
|
"end": [
|
|
2,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this.map(…)' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "ef9e7888e6ba75fa08ff3a4884ec12b07aeac1d0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "5fe5195d5f0b8416e5863a91cc91675c1a043c76"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-callbacks-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-callbacks.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"filepath": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"filepath": "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
|
|
],
|
|
"filepath": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
36
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
32
|
|
],
|
|
"filepath": "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
|
|
],
|
|
"filepath": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
38
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
34
|
|
],
|
|
"filepath": "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": "5fe5195d5f0b8416e5863a91cc91675c1a043c76",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e1ad8c6994e5e3e475b0450190c14a830621f2e8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-callbacks-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-callbacks.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"filepath": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"filepath": "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
|
|
],
|
|
"filepath": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
33
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"filepath": "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
|
|
],
|
|
"filepath": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
35
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
37
|
|
],
|
|
"filepath": "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": "e1ad8c6994e5e3e475b0450190c14a830621f2e8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "be21199a2c109eaf01d8964f7dceb5242bd94c5c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-callbacks-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-callbacks.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this.reduce(…)' method call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "chained-callbacks.js",
|
|
"end": [
|
|
2,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this.map(…)' method call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "chained-callbacks.js",
|
|
"end": [
|
|
2,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this.reduce(…)' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "be21199a2c109eaf01d8964f7dceb5242bd94c5c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a0cca877bad5d1aa7a3e0ebf9d9c04cf828e4176"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-callbacks-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-callbacks.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this.map(…)' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "a0cca877bad5d1aa7a3e0ebf9d9c04cf828e4176",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "052b9850290f471a3fefc219133f72d90ddf7c9d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-callbacks-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-callbacks.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "chained-callbacks.js",
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this.reduce(…)' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-callbacks.js"
|
|
],
|
|
"sha1": "052b9850290f471a3fefc219133f72d90ddf7c9d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3c341577267bfb8873272dbf6be1d4727516b67a"
|
|
}]
|