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-14 12:19:31 -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": "d39e1d538ca94199b5d277c9bc2b3bc021d291db",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d9e619dc220c679243c569db7d2b0bb2930825d2"
}
,{
"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": "d9e619dc220c679243c569db7d2b0bb2930825d2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c5169223a5274822738734135103a8926141353c"
}
,{
"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": "c5169223a5274822738734135103a8926141353c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "873677e00698ebac7dc7bee3829606704ae29e52"
}
,{
"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": "873677e00698ebac7dc7bee3829606704ae29e52",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3b209965ce83be06371be2081648b05ef145cd93"
}
,{
"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": "3b209965ce83be06371be2081648b05ef145cd93",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c5bf4aa291f7d8e348e8f2c93fc89dd03fb1bded"
}
,{
"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": "c5bf4aa291f7d8e348e8f2c93fc89dd03fb1bded",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d073d8436024f8415b85cb0e73cb49e31330be5d"
}
,{
"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": "d073d8436024f8415b85cb0e73cb49e31330be5d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f1ddb4977e48b0aecb113d8434659b1055347399"
}]