mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
297 lines
9.3 KiB
JSON
297 lines
9.3 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-constructor-call-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructor-call.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'module.Klass(1, \"two\")' constructor",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"sha1": "37b9064285baa63e16cc6b1c4b5128fed52fa082",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b8f33f052773b435e5d29e89aeaf9cf8b3a9e8a6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-constructor-call-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructor-call.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'module.Klass(1, \"three\")' constructor",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'module.Klass(1, \"two\")' constructor",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"sha1": "b8f33f052773b435e5d29e89aeaf9cf8b3a9e8a6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fa501924dbaed310d84435b0c33ef97a068653e4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-constructor-call-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructor-call.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
21
|
|
],
|
|
"end": [
|
|
1,
|
|
28
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
21
|
|
],
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"three\" string with the \"two\" string in the module.Klass(1, \"two\") method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"sha1": "fa501924dbaed310d84435b0c33ef97a068653e4",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9c7fb90945f08ad72efbcd243221cef5ce8d9732"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-constructor-call-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructor-call.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
21
|
|
],
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
21
|
|
],
|
|
"end": [
|
|
1,
|
|
28
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"two\" string with the \"three\" string in the module.Klass(1, \"three\") method call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"sha1": "9c7fb90945f08ad72efbcd243221cef5ce8d9732",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "bb66b026044f3944a08fec17c572b7b8867decda"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-constructor-call-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructor-call.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'module.Klass(1, \"three\")' constructor",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'module.Klass(1, \"two\")' constructor",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'module.Klass(1, \"three\")' constructor",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"sha1": "bb66b026044f3944a08fec17c572b7b8867decda",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3669aebc1d501fba80efddd2a0b53b669b045ffa"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-constructor-call-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructor-call.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'module.Klass(1, \"two\")' constructor",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"sha1": "3669aebc1d501fba80efddd2a0b53b669b045ffa",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "aada0c4456c077928d7b286809c61323c9315147"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-constructor-call-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructor-call.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'module.Klass(1, \"three\")' constructor",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"sha1": "aada0c4456c077928d7b286809c61323c9315147",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "770dfcd929f8deaec3cf8028327930c422ee1814"
|
|
}]
|