mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
287 lines
8.9 KiB
JSON
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": "3a19dee8da1e0544c2cf975d850a6ce707912b35",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d65701648386aeedc450735d2d231ad241b0e62e"
|
|
}
|
|
,{
|
|
"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": "d65701648386aeedc450735d2d231ad241b0e62e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "66cc70211c2edf4ff6090e439a410da10a6ffb8f"
|
|
}
|
|
,{
|
|
"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": "66cc70211c2edf4ff6090e439a410da10a6ffb8f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "42b4144cde71d8c7afc757f4881794449cdf0fc5"
|
|
}
|
|
,{
|
|
"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": "42b4144cde71d8c7afc757f4881794449cdf0fc5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fcd77d257692d8e35ec4ab1b7b308f9701f6021c"
|
|
}
|
|
,{
|
|
"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": "fcd77d257692d8e35ec4ab1b7b308f9701f6021c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c0ee844e49724d0ecebc7320ff9753669ded229b"
|
|
}
|
|
,{
|
|
"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": "c0ee844e49724d0ecebc7320ff9753669ded229b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "297e775c0aa3afe5cca15accc9b466c2f095ea56"
|
|
}
|
|
,{
|
|
"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": "297e775c0aa3afe5cca15accc9b466c2f095ea56",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6087206d2569a100e711f522134188e6f4477aec"
|
|
}]
|