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-13 18:02:14 -04:00

395 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": "06e7d3f6809cd80fa2855f8bcf2e0962d931c670",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3d5c548afff2a731a81369b987ab33269cc34c9e"
}
,{
"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": "3d5c548afff2a731a81369b987ab33269cc34c9e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7780979c1049904f86e3cee1502d605728729aeb"
}
,{
"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": {
"replace": [
{
"start": [
1,
42
],
"end": [
1,
45
]
},
{
"start": [
1,
42
],
"end": [
1,
45
]
}
]
},
"summary": "Replaced the 'bar' identifier with the 'two' identifier in the two method of the 'Foo' class"
},
{
"span": {
"replace": [
{
"start": [
1,
63
],
"end": [
1,
66
]
},
{
"start": [
1,
63
],
"end": [
1,
68
]
}
]
},
"summary": "Replaced the 'baz' identifier with the 'three' identifier in the three method of the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "7780979c1049904f86e3cee1502d605728729aeb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9b68ed5855f04406f05e5af323e117bcd7db61ed"
}
,{
"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": {
"replace": [
{
"start": [
1,
42
],
"end": [
1,
45
]
},
{
"start": [
1,
42
],
"end": [
1,
45
]
}
]
},
"summary": "Replaced the 'two' identifier with the 'bar' identifier in the bar method of the 'Foo' class"
},
{
"span": {
"replace": [
{
"start": [
1,
63
],
"end": [
1,
68
]
},
{
"start": [
1,
63
],
"end": [
1,
66
]
}
]
},
"summary": "Replaced the 'three' identifier with the 'baz' identifier in the baz method of the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "9b68ed5855f04406f05e5af323e117bcd7db61ed",
"gitDir": "test/corpus/repos/javascript",
"sha2": "37e0a093175ae550a07287b953c5ae029ce5bd3a"
}
,{
"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": "37e0a093175ae550a07287b953c5ae029ce5bd3a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c58870c5f630edfc88dbfbc9cef490e35fcb4adb"
}
,{
"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": "c58870c5f630edfc88dbfbc9cef490e35fcb4adb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d04dea3345101ccd8d68b0765e8a80e741769c8b"
}
,{
"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": "d04dea3345101ccd8d68b0765e8a80e741769c8b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6b12d49c832613e5148502e9ca79e8989b0a1246"
}]