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

407 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-13 02:44:27 +03:00
"sha1": "474d3e51b55de08c93ed33cb4f08681567c49789",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-13 02:44:27 +03:00
"sha2": "c4e17c3e21dc18f702afb25eee510905d7680a64"
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-13 02:44:27 +03:00
"sha1": "c4e17c3e21dc18f702afb25eee510905d7680a64",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-13 02:44:27 +03:00
"sha2": "7037fa96dfea139b17d6ce24087ad9546d98e17d"
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-13 02:44:27 +03:00
"insert": {
"start": [
1,
42
],
"end": [
1,
62
]
}
2016-10-11 18:12:20 +03:00
},
2016-10-13 02:44:27 +03:00
"summary": "Added the 'two' method in the Foo class"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-13 02:44:27 +03:00
"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
]
}
2016-10-11 18:12:20 +03:00
},
2016-10-13 02:44:27 +03:00
"summary": "Deleted the 'baz' method in the Foo class"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
2016-10-13 02:44:27 +03:00
"sha1": "7037fa96dfea139b17d6ce24087ad9546d98e17d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-13 02:44:27 +03:00
"sha2": "1576b96c584a1e14e0008a9a328c18e9fd405ed0"
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-13 02:44:27 +03:00
"insert": {
"start": [
1,
42
],
"end": [
1,
62
]
}
2016-10-11 18:12:20 +03:00
},
2016-10-13 02:44:27 +03:00
"summary": "Added the 'bar' method in the Foo class"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-13 02:44:27 +03:00
"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
]
}
2016-10-11 18:12:20 +03:00
},
2016-10-13 02:44:27 +03:00
"summary": "Deleted the 'three' method in the Foo class"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
2016-10-13 02:44:27 +03:00
"sha1": "1576b96c584a1e14e0008a9a328c18e9fd405ed0",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-13 02:44:27 +03:00
"sha2": "283b4a6f9dc3395632f781ce8f0f0b980ce05398"
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-13 02:44:27 +03:00
"sha1": "283b4a6f9dc3395632f781ce8f0f0b980ce05398",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-13 02:44:27 +03:00
"sha2": "78d3f43c5723767dfabdd999d814d3f11d248931"
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-13 02:44:27 +03:00
"sha1": "78d3f43c5723767dfabdd999d814d3f11d248931",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-13 02:44:27 +03:00
"sha2": "5a462ae4c1d73650cf3be9b406d3048127e04bcf"
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-13 02:44:27 +03:00
"sha1": "5a462ae4c1d73650cf3be9b406d3048127e04bcf",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-13 02:44:27 +03:00
"sha2": "0e3ab484b61aa0e7144a8933341fd64e0d8d1ddf"
2016-10-11 18:12:20 +03:00
}]