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

429 lines
15 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
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
39
]
}
},
"summary": "Added the 'this.map(…)' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "92d3d86c59db44e6c646c1b8ba61bf650f0ac5d4",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "16b8043a700cdf894ae3be1fc8f6e39428b596fe"
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
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
42
]
}
},
"summary": "Added the 'this.reduce(…)' method call",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
39
]
}
},
"summary": "Added the 'this.map(…)' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "16b8043a700cdf894ae3be1fc8f6e39428b596fe",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "0be3fdde3855a989678bfcf69fb130005e3a543e"
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
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
12
]
},
{
"start": [
1,
6
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'reduce' identifier with the 'map' identifier in the this.map(…) method call",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
35
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
36
]
},
{
"start": [
1,
32
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
33
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier in the this.map(…) method call",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
37
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
38
]
},
{
"start": [
1,
34
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"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": "0be3fdde3855a989678bfcf69fb130005e3a543e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "d8793e0b94c7e48f206f852d5d2d0cc39709ef24"
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
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
9
]
},
{
"start": [
1,
6
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
12
]
}
]
},
"summary": "Replaced the 'map' identifier with the 'reduce' identifier in the this.reduce(…) method call",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
32
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
33
]
},
{
"start": [
1,
35
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
36
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier in the this.reduce(…) method call",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
34
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
35
]
},
{
"start": [
1,
37
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"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": "d8793e0b94c7e48f206f852d5d2d0cc39709ef24",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "ba2894f2b600705cce62c432e9fbcb0055ed7809"
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
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
42
]
}
},
"summary": "Deleted the 'this.reduce(…)' method call",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
39
]
}
},
"summary": "Deleted the 'this.map(…)' method call",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
42
]
}
},
"summary": "Added the 'this.reduce(…)' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "ba2894f2b600705cce62c432e9fbcb0055ed7809",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "65220722c5b3fa4ce786dee81ae090aa49effa02"
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
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
39
]
}
},
"summary": "Deleted the 'this.map(…)' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "65220722c5b3fa4ce786dee81ae090aa49effa02",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "e0a158e1f8b035c1f6833be47cc4f21030f9f4c7"
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
],
2016-10-11 19:52:26 +03:00
"filepath": "chained-callbacks.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
42
]
}
},
"summary": "Deleted the 'this.reduce(…)' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"sha1": "e0a158e1f8b035c1f6833be47cc4f21030f9f4c7",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "4eca89a41a58f273d4b0819fde38f18c1f8e8021"
2016-10-11 18:12:20 +03:00
}]