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

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-14 19:18:46 +03:00
"sha1": "6c8fc6c071ee17be3212168ec8a7f28244c81b0e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "1a5bb5adf0d34b92d2e476570ea712655a5f6dbf"
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 19:18:46 +03:00
"sha1": "1a5bb5adf0d34b92d2e476570ea712655a5f6dbf",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "05b3b95138afdcc834a54e2e36a80279e1caadc9"
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-14 19:18:46 +03:00
"insert": {
"start": [
1,
42
],
"end": [
1,
62
]
}
2016-10-13 02:44:27 +03:00
},
2016-10-14 19:18:46 +03:00
"summary": "Added the 'two' method in the Foo class"
2016-10-13 02:44:27 +03:00
},
{
"span": {
2016-10-14 19:18:46 +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-14 19:18:46 +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-14 19:18:46 +03:00
"sha1": "05b3b95138afdcc834a54e2e36a80279e1caadc9",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "4fca91f083d66749ee24ec53470be3425c3056c1"
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-14 19:18:46 +03:00
"insert": {
"start": [
1,
42
],
"end": [
1,
62
]
}
2016-10-13 02:44:27 +03:00
},
2016-10-14 19:18:46 +03:00
"summary": "Added the 'bar' method in the Foo class"
2016-10-13 02:44:27 +03:00
},
{
"span": {
2016-10-14 19:18:46 +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-14 19:18:46 +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-14 19:18:46 +03:00
"sha1": "4fca91f083d66749ee24ec53470be3425c3056c1",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "33448038d3c954bc41ca9cebe76a8515dcb73a8f"
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 19:18:46 +03:00
"sha1": "33448038d3c954bc41ca9cebe76a8515dcb73a8f",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "b28ea56dba4e822a6f4ad5a0945f3bd47912dab4"
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 19:18:46 +03:00
"sha1": "b28ea56dba4e822a6f4ad5a0945f3bd47912dab4",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "0cbd5489c6c2b88a8efdb104bc12b29f4ef6e7fa"
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 19:18:46 +03:00
"sha1": "0cbd5489c6c2b88a8efdb104bc12b29f4ef6e7fa",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "da9828689247082f15151bb277026ee62c845e79"
2016-10-11 18:12:20 +03:00
}]