1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/method-call.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -05:00

287 lines
8.9 KiB
JSON

[{
"testCaseDescription": "javascript-method-call-insert-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Added the 'object.someMethod(arg1, \"arg2\")' method call"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
"sha1": "e96a9f72694e18966839d0f138a99ac7be56b33e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c843ec1fdb4fc70798d398b0e65703a31d1fe3f7"
}
,{
"testCaseDescription": "javascript-method-call-replacement-insert-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Added the 'object.someMethod(arg1, \"arg3\")' method call"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Added the 'object.someMethod(arg1, \"arg2\")' method call"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
"sha1": "c843ec1fdb4fc70798d398b0e65703a31d1fe3f7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "92dbb0eadf325a40065ffe285491c3ddaca0b5a2"
}
,{
"testCaseDescription": "javascript-method-call-delete-insert-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"replace": [
{
"start": [
1,
25
],
"end": [
1,
31
]
},
{
"start": [
1,
25
],
"end": [
1,
31
]
}
]
},
"summary": "Replaced the \"arg3\" string with the \"arg2\" string in the object.someMethod(arg1, \"arg2\") method call"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
"sha1": "92dbb0eadf325a40065ffe285491c3ddaca0b5a2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7e68072556a4a3f351fff8469f92ce74e8793332"
}
,{
"testCaseDescription": "javascript-method-call-replacement-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"replace": [
{
"start": [
1,
25
],
"end": [
1,
31
]
},
{
"start": [
1,
25
],
"end": [
1,
31
]
}
]
},
"summary": "Replaced the \"arg2\" string with the \"arg3\" string in the object.someMethod(arg1, \"arg3\") method call"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
"sha1": "7e68072556a4a3f351fff8469f92ce74e8793332",
"gitDir": "test/corpus/repos/javascript",
"sha2": "453b2f8ab5c87e25686d19d1be286f09b6999227"
}
,{
"testCaseDescription": "javascript-method-call-delete-replacement-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg3\")' method call"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg2\")' method call"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Added the 'object.someMethod(arg1, \"arg3\")' method call"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
"sha1": "453b2f8ab5c87e25686d19d1be286f09b6999227",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bf3a8aa48a94639865a1292b0618a4d3077dab3c"
}
,{
"testCaseDescription": "javascript-method-call-delete-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg2\")' method call"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
"sha1": "bf3a8aa48a94639865a1292b0618a4d3077dab3c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f8ebc695e11abb8385d98befd834c9a644bba646"
}
,{
"testCaseDescription": "javascript-method-call-delete-rest-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg3\")' method call"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
"sha1": "f8ebc695e11abb8385d98befd834c9a644bba646",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f280453bb32a391891c7d93eaa0edb1747f29819"
}]