mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
287 lines
8.9 KiB
JSON
287 lines
8.9 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"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"sha1": "0246068f6cdc4f8ec197b1270ea14b78fbb21603",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6500c621dc19f4bdc8693d9dd25e73d6899d5431"
|
|
}
|
|
,{
|
|
"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"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'module.Klass(1, \"two\")' constructor"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"sha1": "6500c621dc19f4bdc8693d9dd25e73d6899d5431",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "126426f1ecd9c4631a1bd3a990120b7534f1162d"
|
|
}
|
|
,{
|
|
"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"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"sha1": "126426f1ecd9c4631a1bd3a990120b7534f1162d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "862848baa8296116e6176bdcd7afca6b89aa62f6"
|
|
}
|
|
,{
|
|
"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"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"sha1": "862848baa8296116e6176bdcd7afca6b89aa62f6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d26f0f2b5a0e31022678ee1871d6151112b61d74"
|
|
}
|
|
,{
|
|
"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"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'module.Klass(1, \"two\")' constructor"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'module.Klass(1, \"three\")' constructor"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"sha1": "d26f0f2b5a0e31022678ee1871d6151112b61d74",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "950366e4bb40b054b5ea4d6d96254675c0910e4b"
|
|
}
|
|
,{
|
|
"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"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"sha1": "950366e4bb40b054b5ea4d6d96254675c0910e4b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "89278c13f0e3c63adb6b23da97f28b4c2f657441"
|
|
}
|
|
,{
|
|
"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"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"sha1": "89278c13f0e3c63adb6b23da97f28b4c2f657441",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c0862c63fd7fef9c5f82b163cca6e27bb5a1253e"
|
|
}]
|