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 00:58:17 +03:00
"sha1": "f62df50642bf7960408b3e510b134047ed677411",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:58:17 +03:00
"sha2": "337157f3165aa3911019c4c57a2d66867cf061eb"
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 00:58:17 +03:00
"sha1": "337157f3165aa3911019c4c57a2d66867cf061eb",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:58:17 +03:00
"sha2": "3eef8827cc36b466cb64792c68dcc2fbb84d84c8"
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 00:58:17 +03:00
"sha1": "3eef8827cc36b466cb64792c68dcc2fbb84d84c8",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:58:17 +03:00
"sha2": "0364f6d978543effbf87b3e8ebaf0e907063317f"
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 00:58:17 +03:00
"sha1": "0364f6d978543effbf87b3e8ebaf0e907063317f",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:58:17 +03:00
"sha2": "e8ee560287f06e78fc4b3c8825d596900f159dab"
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 00:58:17 +03:00
"sha1": "e8ee560287f06e78fc4b3c8825d596900f159dab",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:58:17 +03:00
"sha2": "7d3a1173ccf5f1d86c35f59670815e86d6c8d609"
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 00:58:17 +03:00
"sha1": "7d3a1173ccf5f1d86c35f59670815e86d6c8d609",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:58:17 +03:00
"sha2": "9e4aec8ddecf4647a6861b8a5a6d2830e9a20ed8"
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 00:58:17 +03:00
"sha1": "9e4aec8ddecf4647a6861b8a5a6d2830e9a20ed8",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:58:17 +03:00
"sha2": "be04308f7cb37bee24ab9798cc651564ebd09a28"
2016-10-11 18:12:20 +03:00
}]