mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +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": "ec7e7ab3dbd5fa6f9f2a5c7d30b0a6be0c45ce57",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1492a8657b22da71c9726e33a0e19ea9e1137816"
|
|
}
|
|
,{
|
|
"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": "1492a8657b22da71c9726e33a0e19ea9e1137816",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "682c37410578bae9b760e5280c861ac23792bf00"
|
|
}
|
|
,{
|
|
"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": "682c37410578bae9b760e5280c861ac23792bf00",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "da63b4adc67874bddf78fbce1a20aede8a467e05"
|
|
}
|
|
,{
|
|
"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": "da63b4adc67874bddf78fbce1a20aede8a467e05",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "47ecab93e23899d70344b1b0258ceafbd4efda28"
|
|
}
|
|
,{
|
|
"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": "47ecab93e23899d70344b1b0258ceafbd4efda28",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f786ce09cb1f51af7b9430cc3b0940fb9f5e8cfc"
|
|
}
|
|
,{
|
|
"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": "f786ce09cb1f51af7b9430cc3b0940fb9f5e8cfc",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "62a977f90f4c4324a5a6b80c2b179afe827704a0"
|
|
}
|
|
,{
|
|
"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": "62a977f90f4c4324a5a6b80c2b179afe827704a0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "977edd8e1b976d612c9c6f284738a4f22cc697b8"
|
|
}]
|