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

309 lines
10 KiB
JSON

[{
"testCaseDescription": "javascript-constructor-call-insert-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"insert": {
"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": "f110a993d59a58f31e4b09bd46734026c4fdcc60",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c84bb50f8570d3b7620847bb6e53e5164da5dc97"
}
,{
"testCaseDescription": "javascript-constructor-call-replacement-insert-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "constructor-call.js",
"end": [
1,
29
]
}
},
"summary": "Added the 'module.Klass(1, \"three\")' constructor",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"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": "c84bb50f8570d3b7620847bb6e53e5164da5dc97",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f95378398761e820b287651f61214cdaa4d087dd"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-insert-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"replace": [
{
"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": "f95378398761e820b287651f61214cdaa4d087dd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a24d6951b26950920f325e14e492a751fd96c459"
}
,{
"testCaseDescription": "javascript-constructor-call-replacement-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"replace": [
{
"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": "a24d6951b26950920f325e14e492a751fd96c459",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c8e18957750cdeed01b76272ae9dece10cc92bf4"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-replacement-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "constructor-call.js",
"end": [
1,
29
]
}
},
"summary": "Deleted the 'module.Klass(1, \"three\")' constructor",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"name": "constructor-call.js",
"end": [
2,
27
]
}
},
"summary": "Deleted the 'module.Klass(1, \"two\")' constructor",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"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": "c8e18957750cdeed01b76272ae9dece10cc92bf4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9be694183bf6de1655a6be394bf43f07f90b1bef"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"delete": {
"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": "9be694183bf6de1655a6be394bf43f07f90b1bef",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cbfcfc8f787243ede41b2cc3703a90986c2cbd64"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-rest-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"delete": {
"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": "cbfcfc8f787243ede41b2cc3703a90986c2cbd64",
"gitDir": "test/corpus/repos/javascript",
"sha2": "952d18ccd1d4413a1252458befbb6593253aa794"
}]