1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 18:36:27 +03:00
semantic/test/corpus/diff-summaries/javascript/method-call.json

309 lines
10 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
],
"name": "method-call.js",
"end": [
1,
32
]
}
},
"summary": "Added the 'object.someMethod(arg1, \"arg2\")' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "1eac526dd11d55220946d9b6306e3031c11e73a7",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "c5816345fd1905a2f4298ed7529b45295c98cf1e"
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
],
"name": "method-call.js",
"end": [
1,
32
]
}
},
"summary": "Added the 'object.someMethod(arg1, \"arg3\")' method call",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"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"
],
2016-10-11 19:00:34 +03:00
"sha1": "c5816345fd1905a2f4298ed7529b45295c98cf1e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "42bb4713d671009105b1d9ccb7edae5cbf7b2c48"
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
],
"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"
],
2016-10-11 19:00:34 +03:00
"sha1": "42bb4713d671009105b1d9ccb7edae5cbf7b2c48",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "ed18e03d391621e8d70a67e772d341e26f6465b1"
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
],
"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"
],
2016-10-11 19:00:34 +03:00
"sha1": "ed18e03d391621e8d70a67e772d341e26f6465b1",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "0a142682630c961d9ff02801c05cc441e1dd722e"
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
],
"name": "method-call.js",
"end": [
1,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg3\")' method call",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "method-call.js",
"end": [
2,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg2\")' method call",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"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"
],
2016-10-11 19:00:34 +03:00
"sha1": "0a142682630c961d9ff02801c05cc441e1dd722e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "95f9b4362d197b6e47e43cf7763c9fe06aff67f2"
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
],
"name": "method-call.js",
"end": [
1,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg2\")' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "95f9b4362d197b6e47e43cf7763c9fe06aff67f2",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "fbd02de257a4ec83bb80fc192b629c5fd22a7ea4"
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
],
"name": "method-call.js",
"end": [
1,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg3\")' method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "fbd02de257a4ec83bb80fc192b629c5fd22a7ea4",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "90687f3994b4645e5db5b97ec4da3502fbe9053d"
2016-10-11 18:12:20 +03:00
}]