1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/constructor-call.json
2016-10-11 16:18:26 -04:00

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": "d338b275731ec3d9b527339e1ac1b99f43ea5ea2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "07f0e420ba82a7a88edead9753bf001dc427c900"
}
,{
"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": "07f0e420ba82a7a88edead9753bf001dc427c900",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0ead57e4c68d3441874607df82f10cfae180871c"
}
,{
"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": "0ead57e4c68d3441874607df82f10cfae180871c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5312cfad6882b93031aaa4aa6bf94db1cb6097a1"
}
,{
"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": "5312cfad6882b93031aaa4aa6bf94db1cb6097a1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d1ce2f7e01d8a6fb58e25e00612be76b5a92129b"
}
,{
"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": "d1ce2f7e01d8a6fb58e25e00612be76b5a92129b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f2947ecde2c4966ba63934c2bf9fadb1bf9494a5"
}
,{
"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": "f2947ecde2c4966ba63934c2bf9fadb1bf9494a5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3f2450813b57ef20f48fafa20ec30d660a296e5c"
}
,{
"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": "3f2450813b57ef20f48fafa20ec30d660a296e5c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d6f65326cb55e5d2b83057d59ae062b3f4bc778e"
}]