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

309 lines
10 KiB
JSON

[{
"testCaseDescription": "javascript-constructor-call-insert-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "constructor-call.js",
"end": [
1,
27
]
}
},
"summary": "Added the 'module.Klass(1, \"two\")' constructor",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"sha1": "143f944ead8b453c8d4f2a24f35b6e64406217ff",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b3866e0ac05a545a76032b23956be2d3b5696048"
}
,{
"testCaseDescription": "javascript-constructor-call-replacement-insert-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "constructor-call.js",
"end": [
1,
29
]
}
},
"summary": "Added the 'module.Klass(1, \"three\")' constructor",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "constructor-call.js",
"end": [
2,
27
]
}
},
"summary": "Added the 'module.Klass(1, \"two\")' constructor",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"sha1": "b3866e0ac05a545a76032b23956be2d3b5696048",
"gitDir": "test/corpus/repos/javascript",
"sha2": "70242b1d9ffec4b1fb5115d2d3885e6b1e6bb0ae"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-insert-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"these": [
{
"start": [
1,
21
],
"name": "constructor-call.js",
"end": [
1,
28
]
},
{
"start": [
1,
21
],
"name": "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": "70242b1d9ffec4b1fb5115d2d3885e6b1e6bb0ae",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c4c78ad8c80317bea2ec53f28821e4af48c0bd88"
}
,{
"testCaseDescription": "javascript-constructor-call-replacement-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"these": [
{
"start": [
1,
21
],
"name": "constructor-call.js",
"end": [
1,
26
]
},
{
"start": [
1,
21
],
"name": "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": "c4c78ad8c80317bea2ec53f28821e4af48c0bd88",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1f1239540c4737ef3f6a04878602bd5a8148e645"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-replacement-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "constructor-call.js",
"end": [
1,
29
]
}
},
"summary": "Deleted the 'module.Klass(1, \"three\")' constructor",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
2,
1
],
"name": "constructor-call.js",
"end": [
2,
27
]
}
},
"summary": "Deleted the 'module.Klass(1, \"two\")' constructor",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "constructor-call.js",
"end": [
2,
29
]
}
},
"summary": "Added the 'module.Klass(1, \"three\")' constructor",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"sha1": "1f1239540c4737ef3f6a04878602bd5a8148e645",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2884df62a12b83d784761b5cce876be58939a5c5"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "constructor-call.js",
"end": [
1,
27
]
}
},
"summary": "Deleted the 'module.Klass(1, \"two\")' constructor",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"sha1": "2884df62a12b83d784761b5cce876be58939a5c5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0151a1ccd7bd4e96dbf6ab51cbb8ef5259f9d58d"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-rest-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "constructor-call.js",
"end": [
1,
29
]
}
},
"summary": "Deleted the 'module.Klass(1, \"three\")' constructor",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"sha1": "0151a1ccd7bd4e96dbf6ab51cbb8ef5259f9d58d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "29d3dd029a42aa320f2d154af468cc33e9fc7be2"
}]