1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/constructor-call.json
2016-11-01 10:03:25 -05: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": "3bd8ebcbe86dd538120a517b6420d768e8ce2b4c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ce70ddd02a33da6279c6bf17d449df82c8832841"
}
,{
"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": "ce70ddd02a33da6279c6bf17d449df82c8832841",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8487448225b5505389343c8393596e17ce1a54e8"
}
,{
"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": "8487448225b5505389343c8393596e17ce1a54e8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0eba0fb788d00016c7515ce5c38c413191448474"
}
,{
"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": "0eba0fb788d00016c7515ce5c38c413191448474",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c1e0930ce2d9e9d05f967ee7857e1a8b7e80b9a2"
}
,{
"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": "c1e0930ce2d9e9d05f967ee7857e1a8b7e80b9a2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "723818ee1046fdbb4aed30a93ec6cc212062fdcd"
}
,{
"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": "723818ee1046fdbb4aed30a93ec6cc212062fdcd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5899cfa5983c7be3dc0c389ca1d0288fb608e98b"
}
,{
"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": "5899cfa5983c7be3dc0c389ca1d0288fb608e98b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "012105d0edaef241c26098d6e1680dab22bacbbc"
}]