1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +03:00
semantic/test/corpus/diff-summaries/javascript/method-call.json
2016-10-11 12:00:34 -04:00

309 lines
10 KiB
JSON

[{
"testCaseDescription": "javascript-method-call-insert-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"insert": {
"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": "1eac526dd11d55220946d9b6306e3031c11e73a7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c5816345fd1905a2f4298ed7529b45295c98cf1e"
}
,{
"testCaseDescription": "javascript-method-call-replacement-insert-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "method-call.js",
"end": [
1,
32
]
}
},
"summary": "Added the 'object.someMethod(arg1, \"arg3\")' method call",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"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": "c5816345fd1905a2f4298ed7529b45295c98cf1e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "42bb4713d671009105b1d9ccb7edae5cbf7b2c48"
}
,{
"testCaseDescription": "javascript-method-call-delete-insert-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"replace": [
{
"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": "42bb4713d671009105b1d9ccb7edae5cbf7b2c48",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ed18e03d391621e8d70a67e772d341e26f6465b1"
}
,{
"testCaseDescription": "javascript-method-call-replacement-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"replace": [
{
"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": "ed18e03d391621e8d70a67e772d341e26f6465b1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0a142682630c961d9ff02801c05cc441e1dd722e"
}
,{
"testCaseDescription": "javascript-method-call-delete-replacement-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "method-call.js",
"end": [
1,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg3\")' method call",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"name": "method-call.js",
"end": [
2,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg2\")' method call",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"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": "0a142682630c961d9ff02801c05cc441e1dd722e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "95f9b4362d197b6e47e43cf7763c9fe06aff67f2"
}
,{
"testCaseDescription": "javascript-method-call-delete-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"delete": {
"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": "95f9b4362d197b6e47e43cf7763c9fe06aff67f2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "fbd02de257a4ec83bb80fc192b629c5fd22a7ea4"
}
,{
"testCaseDescription": "javascript-method-call-delete-rest-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"delete": {
"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": "fbd02de257a4ec83bb80fc192b629c5fd22a7ea4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "90687f3994b4645e5db5b97ec4da3502fbe9053d"
}]