1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/constructor-call.json
2016-10-11 12:52:26 -04:00

309 lines
10 KiB
JSON

[{
"testCaseDescription": "javascript-constructor-call-insert-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "constructor-call.js",
"end": [
1,
27
]
}
},
"summary": "Added the 'module.Klass(1, \"two\")' constructor",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"sha1": "d045a78616b98743348a591843bc79453d97fbde",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ab9ab388d28ec6986921e04ab6efb34e293a00f3"
}
,{
"testCaseDescription": "javascript-constructor-call-replacement-insert-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "constructor-call.js",
"end": [
1,
29
]
}
},
"summary": "Added the 'module.Klass(1, \"three\")' constructor",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "constructor-call.js",
"end": [
2,
27
]
}
},
"summary": "Added the 'module.Klass(1, \"two\")' constructor",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"sha1": "ab9ab388d28ec6986921e04ab6efb34e293a00f3",
"gitDir": "test/corpus/repos/javascript",
"sha2": "60d26544387b8eb9bc94b7e9d2427f9ec157b988"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-insert-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"replace": [
{
"start": [
1,
21
],
"filepath": "constructor-call.js",
"end": [
1,
28
]
},
{
"start": [
1,
21
],
"filepath": "constructor-call.js",
"end": [
1,
26
]
}
]
},
"summary": "Replaced the \"three\" string with the \"two\" string in the module.Klass(1, \"two\") method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"sha1": "60d26544387b8eb9bc94b7e9d2427f9ec157b988",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bc333c04253857d7a38f59e4d51778ba72d49d23"
}
,{
"testCaseDescription": "javascript-constructor-call-replacement-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"replace": [
{
"start": [
1,
21
],
"filepath": "constructor-call.js",
"end": [
1,
26
]
},
{
"start": [
1,
21
],
"filepath": "constructor-call.js",
"end": [
1,
28
]
}
]
},
"summary": "Replaced the \"two\" string with the \"three\" string in the module.Klass(1, \"three\") method call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"sha1": "bc333c04253857d7a38f59e4d51778ba72d49d23",
"gitDir": "test/corpus/repos/javascript",
"sha2": "43543815e5d35f610e76d9b8b03095b6b989dc14"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-replacement-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "constructor-call.js",
"end": [
1,
29
]
}
},
"summary": "Deleted the 'module.Klass(1, \"three\")' constructor",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"filepath": "constructor-call.js",
"end": [
2,
27
]
}
},
"summary": "Deleted the 'module.Klass(1, \"two\")' constructor",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "constructor-call.js",
"end": [
2,
29
]
}
},
"summary": "Added the 'module.Klass(1, \"three\")' constructor",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"sha1": "43543815e5d35f610e76d9b8b03095b6b989dc14",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4afe412c3a12b5fbbc0fdec59dbfd226f1c9d6ff"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "constructor-call.js",
"end": [
1,
27
]
}
},
"summary": "Deleted the 'module.Klass(1, \"two\")' constructor",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"sha1": "4afe412c3a12b5fbbc0fdec59dbfd226f1c9d6ff",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7907893594f652b89f2f63f4186ee6cd3e9a4a62"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-rest-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "constructor-call.js",
"end": [
1,
29
]
}
},
"summary": "Deleted the 'module.Klass(1, \"three\")' constructor",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"sha1": "7907893594f652b89f2f63f4186ee6cd3e9a4a62",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3c0252908fc7ee20c686918ee278f446a5bd4e81"
}]