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

429 lines
15 KiB
JSON

[{
"testCaseDescription": "javascript-chained-callbacks-insert-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "chained-callbacks.js",
"end": [
1,
39
]
}
},
"summary": "Added the 'this.map(…)' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "3717d88f796c52203c37c0d8440b823c78192c49",
"gitDir": "test/corpus/repos/javascript",
"sha2": "72ab8f58d72d44c1059e734e3a396d97eb072f23"
}
,{
"testCaseDescription": "javascript-chained-callbacks-replacement-insert-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "chained-callbacks.js",
"end": [
1,
42
]
}
},
"summary": "Added the 'this.reduce(…)' method call",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "chained-callbacks.js",
"end": [
2,
39
]
}
},
"summary": "Added the 'this.map(…)' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "72ab8f58d72d44c1059e734e3a396d97eb072f23",
"gitDir": "test/corpus/repos/javascript",
"sha2": "57f2199dba16641866f45c7554c0bbb5b912dc36"
}
,{
"testCaseDescription": "javascript-chained-callbacks-delete-insert-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"these": [
{
"start": [
1,
6
],
"name": "chained-callbacks.js",
"end": [
1,
12
]
},
{
"start": [
1,
6
],
"name": "chained-callbacks.js",
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'reduce' identifier with the 'map' identifier in the this.map(…) method call",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
35
],
"name": "chained-callbacks.js",
"end": [
1,
36
]
},
{
"start": [
1,
32
],
"name": "chained-callbacks.js",
"end": [
1,
33
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier in the this.map(…) method call",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
37
],
"name": "chained-callbacks.js",
"end": [
1,
38
]
},
{
"start": [
1,
34
],
"name": "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": "57f2199dba16641866f45c7554c0bbb5b912dc36",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d00c5e7da7eb6dfcdc63fa490b3e1f5c1481d41d"
}
,{
"testCaseDescription": "javascript-chained-callbacks-replacement-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"these": [
{
"start": [
1,
6
],
"name": "chained-callbacks.js",
"end": [
1,
9
]
},
{
"start": [
1,
6
],
"name": "chained-callbacks.js",
"end": [
1,
12
]
}
]
},
"summary": "Replaced the 'map' identifier with the 'reduce' identifier in the this.reduce(…) method call",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
32
],
"name": "chained-callbacks.js",
"end": [
1,
33
]
},
{
"start": [
1,
35
],
"name": "chained-callbacks.js",
"end": [
1,
36
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier in the this.reduce(…) method call",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
34
],
"name": "chained-callbacks.js",
"end": [
1,
35
]
},
{
"start": [
1,
37
],
"name": "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": "d00c5e7da7eb6dfcdc63fa490b3e1f5c1481d41d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9c042fe39e2f19c0e5f6cd64026de2a03c4c0896"
}
,{
"testCaseDescription": "javascript-chained-callbacks-delete-replacement-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "chained-callbacks.js",
"end": [
1,
42
]
}
},
"summary": "Deleted the 'this.reduce(…)' method call",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
2,
1
],
"name": "chained-callbacks.js",
"end": [
2,
39
]
}
},
"summary": "Deleted the 'this.map(…)' method call",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "chained-callbacks.js",
"end": [
2,
42
]
}
},
"summary": "Added the 'this.reduce(…)' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "9c042fe39e2f19c0e5f6cd64026de2a03c4c0896",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6a9959f752a3845f39f9044f342173af99c4ee6f"
}
,{
"testCaseDescription": "javascript-chained-callbacks-delete-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "chained-callbacks.js",
"end": [
1,
39
]
}
},
"summary": "Deleted the 'this.map(…)' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "6a9959f752a3845f39f9044f342173af99c4ee6f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a9b91380938e6d3842fd308280c0a638bb537ba5"
}
,{
"testCaseDescription": "javascript-chained-callbacks-delete-rest-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "chained-callbacks.js",
"end": [
1,
42
]
}
},
"summary": "Deleted the 'this.reduce(…)' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "a9b91380938e6d3842fd308280c0a638bb537ba5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cf31ddf834d011d1d55eee3da85c70f15eea67f1"
}]