1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/javascript/class.json

395 lines
12 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-class-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
87
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'Foo' class"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
2016-10-14 01:02:14 +03:00
"sha1": "06e7d3f6809cd80fa2855f8bcf2e0962d931c670",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 01:02:14 +03:00
"sha2": "3d5c548afff2a731a81369b987ab33269cc34c9e"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-class-replacement-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
85
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'Foo' class"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
87
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'Foo' class"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
2016-10-14 01:02:14 +03:00
"sha1": "3d5c548afff2a731a81369b987ab33269cc34c9e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 01:02:14 +03:00
"sha2": "7780979c1049904f86e3cee1502d605728729aeb"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-class-delete-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
20
],
"end": [
1,
23
]
},
{
"start": [
1,
20
],
"end": [
1,
23
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'foo' identifier with the 'one' identifier in the one method of the 'Foo' class"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
42
],
"end": [
1,
45
]
},
{
"start": [
1,
42
],
"end": [
1,
45
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'bar' identifier with the 'two' identifier in the two method of the 'Foo' class"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
63
],
"end": [
1,
66
]
},
{
"start": [
1,
63
],
"end": [
1,
68
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'baz' identifier with the 'three' identifier in the three method of the 'Foo' class"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
2016-10-14 01:02:14 +03:00
"sha1": "7780979c1049904f86e3cee1502d605728729aeb",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 01:02:14 +03:00
"sha2": "9b68ed5855f04406f05e5af323e117bcd7db61ed"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-class-replacement-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
20
],
"end": [
1,
23
]
},
{
"start": [
1,
20
],
"end": [
1,
23
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'one' identifier with the 'foo' identifier in the foo method of the 'Foo' class"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
42
],
"end": [
1,
45
]
},
{
"start": [
1,
42
],
"end": [
1,
45
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'two' identifier with the 'bar' identifier in the bar method of the 'Foo' class"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
63
],
"end": [
1,
68
]
},
{
"start": [
1,
63
],
"end": [
1,
66
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'three' identifier with the 'baz' identifier in the baz method of the 'Foo' class"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
2016-10-14 01:02:14 +03:00
"sha1": "9b68ed5855f04406f05e5af323e117bcd7db61ed",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 01:02:14 +03:00
"sha2": "37e0a093175ae550a07287b953c5ae029ce5bd3a"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-class-delete-replacement-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
85
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'Foo' class"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
87
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'Foo' class"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
85
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'Foo' class"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
2016-10-14 01:02:14 +03:00
"sha1": "37e0a093175ae550a07287b953c5ae029ce5bd3a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 01:02:14 +03:00
"sha2": "c58870c5f630edfc88dbfbc9cef490e35fcb4adb"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-class-delete-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
87
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'Foo' class"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
2016-10-14 01:02:14 +03:00
"sha1": "c58870c5f630edfc88dbfbc9cef490e35fcb4adb",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 01:02:14 +03:00
"sha2": "d04dea3345101ccd8d68b0765e8a80e741769c8b"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-class-delete-rest-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
85
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'Foo' class"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
2016-10-14 01:02:14 +03:00
"sha1": "d04dea3345101ccd8d68b0765e8a80e741769c8b",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 01:02:14 +03:00
"sha2": "6b12d49c832613e5148502e9ca79e8989b0a1246"
2016-10-11 18:12:20 +03:00
}]