1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
semantic/test/corpus/diff-summaries/javascript/nested-functions.json

353 lines
11 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-nested-functions-insert-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
103
]
}
},
"summary": "Added the 'parent' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "d0057ff388e8070743e2f2922cff0d9b3a2ad5de",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "4ac6b2869a5665de7edc7342598666e37dd1a139"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-nested-functions-replacement-insert-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
103
]
}
},
"summary": "Added the 'parent' function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
103
]
}
},
"summary": "Added the 'parent' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "4ac6b2869a5665de7edc7342598666e37dd1a139",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "394a62ade20d4d86615aec875b6e77b67c610af0"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-nested-functions-delete-insert-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
74
],
"end": [
1,
78
]
},
{
"start": [
1,
74
],
"end": [
1,
78
]
}
]
},
"summary": "Replaced the 'arg1' identifier with the 'arg3' identifier in the console.log(arg3) method call of the 'child' function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
93
],
"end": [
1,
97
]
},
{
"start": [
1,
93
],
"end": [
1,
97
]
}
]
},
"summary": "Replaced the 'arg2' identifier with the 'arg4' identifier in the console.log(arg4) method call of the 'child' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "394a62ade20d4d86615aec875b6e77b67c610af0",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "7904f2aa3a357840ae49cbeb09842f4483d5b928"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-nested-functions-replacement-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
74
],
"end": [
1,
78
]
},
{
"start": [
1,
74
],
"end": [
1,
78
]
}
]
},
"summary": "Replaced the 'arg3' identifier with the 'arg1' identifier in the console.log(arg1) method call of the 'child' function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
93
],
"end": [
1,
97
]
},
{
"start": [
1,
93
],
"end": [
1,
97
]
}
]
},
"summary": "Replaced the 'arg4' identifier with the 'arg2' identifier in the console.log(arg2) method call of the 'child' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "7904f2aa3a357840ae49cbeb09842f4483d5b928",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "f967788b85cc219d33d64545d8f1168ba3b43344"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-nested-functions-delete-replacement-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
103
]
}
},
"summary": "Deleted the 'parent' function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
103
]
}
},
"summary": "Deleted the 'parent' function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
103
]
}
},
"summary": "Added the 'parent' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "f967788b85cc219d33d64545d8f1168ba3b43344",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "a2a9a7ac4e107169142641d24a73e66725e9db9b"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-nested-functions-delete-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
103
]
}
},
"summary": "Deleted the 'parent' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "a2a9a7ac4e107169142641d24a73e66725e9db9b",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "49fdec7315d09e2ed03e0ae78e59593952d0b6d4"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-nested-functions-delete-rest-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
103
]
}
},
"summary": "Deleted the 'parent' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "49fdec7315d09e2ed03e0ae78e59593952d0b6d4",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "f49e31811346eb6451409e09e36f417aeeda390a"
2016-10-11 18:12:20 +03:00
}]