1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 10:27:45 +03:00
semantic/test/corpus/diff-summaries/javascript/method-call.json

309 lines
10 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-method-call-insert-test",
"expectedResult": {
"changes": {
"method-call.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": "method-call.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
32
]
}
},
"summary": "Added the 'object.someMethod(arg1, \"arg2\")' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "f51ceb51189206274b7be19df66fb5dbf0d6eddc",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "4789ac09ae56eb9c6e5a916a455b7335de64f8ea"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-method-call-replacement-insert-test",
"expectedResult": {
"changes": {
"method-call.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": "method-call.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
32
]
}
},
"summary": "Added the 'object.someMethod(arg1, \"arg3\")' 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": "method-call.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
32
]
}
},
"summary": "Added the 'object.someMethod(arg1, \"arg2\")' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "4789ac09ae56eb9c6e5a916a455b7335de64f8ea",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "840e7daa35e89d596fd5f91630bd57229b85f521"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-method-call-delete-insert-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
25
],
2016-10-11 19:52:26 +03:00
"filepath": "method-call.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
31
]
},
{
"start": [
1,
25
],
2016-10-11 19:52:26 +03:00
"filepath": "method-call.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
31
]
}
]
},
"summary": "Replaced the \"arg3\" string with the \"arg2\" string in the object.someMethod(arg1, \"arg2\") method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "840e7daa35e89d596fd5f91630bd57229b85f521",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "8bf40a24d033d5ba58c66dba0ec06b356b87eb98"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-method-call-replacement-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
25
],
2016-10-11 19:52:26 +03:00
"filepath": "method-call.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
31
]
},
{
"start": [
1,
25
],
2016-10-11 19:52:26 +03:00
"filepath": "method-call.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
31
]
}
]
},
"summary": "Replaced the \"arg2\" string with the \"arg3\" string in the object.someMethod(arg1, \"arg3\") method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "8bf40a24d033d5ba58c66dba0ec06b356b87eb98",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "5eaf3ca5ea3e95810d164a0d58e9a7e6874069ec"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-method-call-delete-replacement-test",
"expectedResult": {
"changes": {
"method-call.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": "method-call.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg3\")' 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": "method-call.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg2\")' 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": "method-call.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
32
]
}
},
"summary": "Added the 'object.someMethod(arg1, \"arg3\")' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "5eaf3ca5ea3e95810d164a0d58e9a7e6874069ec",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "a552504f23c0526ded3f98a77f6e6679bcf2db73"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-method-call-delete-test",
"expectedResult": {
"changes": {
"method-call.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": "method-call.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg2\")' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "a552504f23c0526ded3f98a77f6e6679bcf2db73",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "f84fa8487d754836daab0bea285a96bf6c8fadb0"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-method-call-delete-rest-test",
"expectedResult": {
"changes": {
"method-call.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": "method-call.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg3\")' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "f84fa8487d754836daab0bea285a96bf6c8fadb0",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "ff6e03757059860925ebb5fcfebf2f07cee6ee9f"
2016-10-11 18:12:20 +03:00
}]