mirror of
https://github.com/github/semantic.git
synced 2024-12-21 05:41:54 +03:00
309 lines
9.9 KiB
JSON
309 lines
9.9 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-method-call-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-call.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "method-call.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'object.someMethod(arg1, \"arg2\")' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-call.js"
|
|
],
|
|
"sha1": "ec567b366ed73c0a2d60e9e3a7736db883537a4c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "840b4603bd70e3aeb19603964bb4087442882b18"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-method-call-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-call.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "method-call.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'object.someMethod(arg1, \"arg3\")' method call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "method-call.js",
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'object.someMethod(arg1, \"arg2\")' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-call.js"
|
|
],
|
|
"sha1": "840b4603bd70e3aeb19603964bb4087442882b18",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1e74a8573a26c304e4bdc2e687a955b5ec7b4b9a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-method-call-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-call.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"name": "method-call.js",
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"name": "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": "1e74a8573a26c304e4bdc2e687a955b5ec7b4b9a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "447fd2cf545ddb584f7923defe1659bcbf7b7457"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-method-call-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-call.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"name": "method-call.js",
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"name": "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": "447fd2cf545ddb584f7923defe1659bcbf7b7457",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "beb6a15d9dd99a6abe9a15360a9bf11c4cb0b62d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-method-call-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-call.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "method-call.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'object.someMethod(arg1, \"arg3\")' method call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "method-call.js",
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'object.someMethod(arg1, \"arg2\")' method call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "method-call.js",
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'object.someMethod(arg1, \"arg3\")' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-call.js"
|
|
],
|
|
"sha1": "beb6a15d9dd99a6abe9a15360a9bf11c4cb0b62d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "bb8bafd9ca71ecc00d4a2b17f4994eafcc4a02b6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-method-call-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-call.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "method-call.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'object.someMethod(arg1, \"arg2\")' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-call.js"
|
|
],
|
|
"sha1": "bb8bafd9ca71ecc00d4a2b17f4994eafcc4a02b6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "64c5036bb60d199c3d753f5fbc67c030597daf55"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-method-call-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-call.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "method-call.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'object.someMethod(arg1, \"arg3\")' method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-call.js"
|
|
],
|
|
"sha1": "64c5036bb60d199c3d753f5fbc67c030597daf55",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d40eaae205d67245d41875f45a6cd12cc1c6beee"
|
|
}]
|