1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/method-call.json

287 lines
8.9 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
],
"end": [
1,
32
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'object.someMethod(arg1, \"arg2\")' method call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "3a19dee8da1e0544c2cf975d850a6ce707912b35",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "d65701648386aeedc450735d2d231ad241b0e62e"
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
],
"end": [
1,
32
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'object.someMethod(arg1, \"arg3\")' method call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
32
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'object.someMethod(arg1, \"arg2\")' method call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "d65701648386aeedc450735d2d231ad241b0e62e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "66cc70211c2edf4ff6090e439a410da10a6ffb8f"
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
],
"end": [
1,
31
]
},
{
"start": [
1,
25
],
"end": [
1,
31
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the \"arg3\" string with the \"arg2\" string in the object.someMethod(arg1, \"arg2\") method call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "66cc70211c2edf4ff6090e439a410da10a6ffb8f",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "42b4144cde71d8c7afc757f4881794449cdf0fc5"
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
],
"end": [
1,
31
]
},
{
"start": [
1,
25
],
"end": [
1,
31
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the \"arg2\" string with the \"arg3\" string in the object.someMethod(arg1, \"arg3\") method call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "42b4144cde71d8c7afc757f4881794449cdf0fc5",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "fcd77d257692d8e35ec4ab1b7b308f9701f6021c"
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
],
"end": [
1,
32
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'object.someMethod(arg1, \"arg3\")' method call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
32
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'object.someMethod(arg1, \"arg2\")' method call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
32
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'object.someMethod(arg1, \"arg3\")' method call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "fcd77d257692d8e35ec4ab1b7b308f9701f6021c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "c0ee844e49724d0ecebc7320ff9753669ded229b"
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
],
"end": [
1,
32
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'object.someMethod(arg1, \"arg2\")' method call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "c0ee844e49724d0ecebc7320ff9753669ded229b",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "297e775c0aa3afe5cca15accc9b466c2f095ea56"
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
],
"end": [
1,
32
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'object.someMethod(arg1, \"arg3\")' method call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "297e775c0aa3afe5cca15accc9b466c2f095ea56",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "6087206d2569a100e711f522134188e6f4477aec"
2016-10-11 18:12:20 +03:00
}]