1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/method-call.json
2016-10-11 12:52:26 -04:00

309 lines
10 KiB
JSON

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