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/class.json
2016-10-12 19:44:27 -04:00

407 lines
12 KiB
JSON

[{
"testCaseDescription": "javascript-class-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
87
]
}
},
"summary": "Added the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "474d3e51b55de08c93ed33cb4f08681567c49789",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c4e17c3e21dc18f702afb25eee510905d7680a64"
}
,{
"testCaseDescription": "javascript-class-replacement-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
85
]
}
},
"summary": "Added the 'Foo' class"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
87
]
}
},
"summary": "Added the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "c4e17c3e21dc18f702afb25eee510905d7680a64",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7037fa96dfea139b17d6ce24087ad9546d98e17d"
}
,{
"testCaseDescription": "javascript-class-delete-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
23
]
},
{
"start": [
1,
20
],
"end": [
1,
23
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'one' identifier in the one method of the 'Foo' class"
},
{
"span": {
"insert": {
"start": [
1,
42
],
"end": [
1,
62
]
}
},
"summary": "Added the 'two' method in the Foo class"
},
{
"span": {
"insert": {
"start": [
1,
63
],
"end": [
1,
85
]
}
},
"summary": "Added the 'three' method in the Foo class"
},
{
"span": {
"delete": {
"start": [
1,
42
],
"end": [
1,
62
]
}
},
"summary": "Deleted the 'bar' method in the Foo class"
},
{
"span": {
"delete": {
"start": [
1,
63
],
"end": [
1,
83
]
}
},
"summary": "Deleted the 'baz' method in the Foo class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "7037fa96dfea139b17d6ce24087ad9546d98e17d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1576b96c584a1e14e0008a9a328c18e9fd405ed0"
}
,{
"testCaseDescription": "javascript-class-replacement-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
23
]
},
{
"start": [
1,
20
],
"end": [
1,
23
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'foo' identifier in the foo method of the 'Foo' class"
},
{
"span": {
"insert": {
"start": [
1,
42
],
"end": [
1,
62
]
}
},
"summary": "Added the 'bar' method in the Foo class"
},
{
"span": {
"insert": {
"start": [
1,
63
],
"end": [
1,
83
]
}
},
"summary": "Added the 'baz' method in the Foo class"
},
{
"span": {
"delete": {
"start": [
1,
42
],
"end": [
1,
62
]
}
},
"summary": "Deleted the 'two' method in the Foo class"
},
{
"span": {
"delete": {
"start": [
1,
63
],
"end": [
1,
85
]
}
},
"summary": "Deleted the 'three' method in the Foo class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "1576b96c584a1e14e0008a9a328c18e9fd405ed0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "283b4a6f9dc3395632f781ce8f0f0b980ce05398"
}
,{
"testCaseDescription": "javascript-class-delete-replacement-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
85
]
}
},
"summary": "Deleted the 'Foo' class"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
87
]
}
},
"summary": "Deleted the 'Foo' class"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
85
]
}
},
"summary": "Added the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "283b4a6f9dc3395632f781ce8f0f0b980ce05398",
"gitDir": "test/corpus/repos/javascript",
"sha2": "78d3f43c5723767dfabdd999d814d3f11d248931"
}
,{
"testCaseDescription": "javascript-class-delete-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
87
]
}
},
"summary": "Deleted the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "78d3f43c5723767dfabdd999d814d3f11d248931",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5a462ae4c1d73650cf3be9b406d3048127e04bcf"
}
,{
"testCaseDescription": "javascript-class-delete-rest-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
85
]
}
},
"summary": "Deleted the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "5a462ae4c1d73650cf3be9b406d3048127e04bcf",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0e3ab484b61aa0e7144a8933341fd64e0d8d1ddf"
}]