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 11:54:47 -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": "24037753ea53b15094b5e71eef37b694a5f001fe",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ce88a11c4e5b2fac1008456760bec7db01ce7d90"
}
,{
"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": "ce88a11c4e5b2fac1008456760bec7db01ce7d90",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b0a9c2ae55eabfec8e38071ba5e67777bdb6b711"
}
,{
"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": "b0a9c2ae55eabfec8e38071ba5e67777bdb6b711",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2e3e47822227fad89d4c04fcab8864e78275580a"
}
,{
"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": "2e3e47822227fad89d4c04fcab8864e78275580a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e4743cb765f3cf98961aee3379aa6e44df5d0044"
}
,{
"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": "e4743cb765f3cf98961aee3379aa6e44df5d0044",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7adc939f69779c818eab16bdf36f7825068ed6a9"
}
,{
"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": "7adc939f69779c818eab16bdf36f7825068ed6a9",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9c530a1b7197ec7453b5a4af0600a715768a5727"
}
,{
"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": "9c530a1b7197ec7453b5a4af0600a715768a5727",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c64bd8c8fddd5dfddd8b66e5da73f44196a2f949"
}]