1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +03:00
semantic/test/corpus/diff-summaries/javascript/class.json

429 lines
14 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
],
"name": "class.js",
"end": [
1,
87
]
}
},
"summary": "Added the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "a73251e778f05b8cbe501d5f6ea0c483640ced20",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "d14f6c7cb29e72223e5d2c7170379f99f8a893b2"
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
],
"name": "class.js",
"end": [
1,
85
]
}
},
"summary": "Added the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "class.js",
"end": [
2,
87
]
}
},
"summary": "Added the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "d14f6c7cb29e72223e5d2c7170379f99f8a893b2",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "7c73aea04cb45042bf232a448d426be9ae888a9b"
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
],
"name": "class.js",
"end": [
1,
23
]
},
{
"start": [
1,
20
],
"name": "class.js",
"end": [
1,
23
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'one' identifier in the one method of the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
42
],
"name": "class.js",
"end": [
1,
45
]
},
{
"start": [
1,
42
],
"name": "class.js",
"end": [
1,
45
]
}
]
},
"summary": "Replaced the 'bar' identifier with the 'two' identifier in the two method of the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
63
],
"name": "class.js",
"end": [
1,
66
]
},
{
"start": [
1,
63
],
"name": "class.js",
"end": [
1,
68
]
}
]
},
"summary": "Replaced the 'baz' identifier with the 'three' identifier in the three method of the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "7c73aea04cb45042bf232a448d426be9ae888a9b",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "aecfbbcd53407a567f46a40cad9270e0bf22458a"
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
],
"name": "class.js",
"end": [
1,
23
]
},
{
"start": [
1,
20
],
"name": "class.js",
"end": [
1,
23
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'foo' identifier in the foo method of the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
42
],
"name": "class.js",
"end": [
1,
45
]
},
{
"start": [
1,
42
],
"name": "class.js",
"end": [
1,
45
]
}
]
},
"summary": "Replaced the 'two' identifier with the 'bar' identifier in the bar method of the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
63
],
"name": "class.js",
"end": [
1,
68
]
},
{
"start": [
1,
63
],
"name": "class.js",
"end": [
1,
66
]
}
]
},
"summary": "Replaced the 'three' identifier with the 'baz' identifier in the baz method of the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "aecfbbcd53407a567f46a40cad9270e0bf22458a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "f35ad41e7a506af4049a99149a8f42fe403fd3c2"
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
],
"name": "class.js",
"end": [
1,
85
]
}
},
"summary": "Deleted the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "class.js",
"end": [
2,
87
]
}
},
"summary": "Deleted the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "class.js",
"end": [
2,
85
]
}
},
"summary": "Added the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "f35ad41e7a506af4049a99149a8f42fe403fd3c2",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "408c1f0028eff597ce2334d8b98a0692fbc32ee2"
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
],
"name": "class.js",
"end": [
1,
87
]
}
},
"summary": "Deleted the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "408c1f0028eff597ce2334d8b98a0692fbc32ee2",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "1414ce434ca9fe4f8b0cdfb16e7e50bcdd12055f"
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
],
"name": "class.js",
"end": [
1,
85
]
}
},
"summary": "Deleted the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "1414ce434ca9fe4f8b0cdfb16e7e50bcdd12055f",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "04b681e1190310f6148595f3d80260ae13299d43"
2016-10-11 18:12:20 +03:00
}]