1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/class.json
2016-10-11 12:00:34 -04:00

429 lines
14 KiB
JSON

[{
"testCaseDescription": "javascript-class-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "class.js",
"end": [
1,
87
]
}
},
"summary": "Added the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "a73251e778f05b8cbe501d5f6ea0c483640ced20",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d14f6c7cb29e72223e5d2c7170379f99f8a893b2"
}
,{
"testCaseDescription": "javascript-class-replacement-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "class.js",
"end": [
1,
85
]
}
},
"summary": "Added the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "class.js",
"end": [
2,
87
]
}
},
"summary": "Added the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "d14f6c7cb29e72223e5d2c7170379f99f8a893b2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7c73aea04cb45042bf232a448d426be9ae888a9b"
}
,{
"testCaseDescription": "javascript-class-delete-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"replace": [
{
"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": {
"replace": [
{
"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": {
"replace": [
{
"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"
],
"sha1": "7c73aea04cb45042bf232a448d426be9ae888a9b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "aecfbbcd53407a567f46a40cad9270e0bf22458a"
}
,{
"testCaseDescription": "javascript-class-replacement-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"replace": [
{
"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": {
"replace": [
{
"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": {
"replace": [
{
"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"
],
"sha1": "aecfbbcd53407a567f46a40cad9270e0bf22458a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f35ad41e7a506af4049a99149a8f42fe403fd3c2"
}
,{
"testCaseDescription": "javascript-class-delete-replacement-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "class.js",
"end": [
1,
85
]
}
},
"summary": "Deleted the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"name": "class.js",
"end": [
2,
87
]
}
},
"summary": "Deleted the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "class.js",
"end": [
2,
85
]
}
},
"summary": "Added the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "f35ad41e7a506af4049a99149a8f42fe403fd3c2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "408c1f0028eff597ce2334d8b98a0692fbc32ee2"
}
,{
"testCaseDescription": "javascript-class-delete-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "class.js",
"end": [
1,
87
]
}
},
"summary": "Deleted the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "408c1f0028eff597ce2334d8b98a0692fbc32ee2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1414ce434ca9fe4f8b0cdfb16e7e50bcdd12055f"
}
,{
"testCaseDescription": "javascript-class-delete-rest-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "class.js",
"end": [
1,
85
]
}
},
"summary": "Deleted the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "1414ce434ca9fe4f8b0cdfb16e7e50bcdd12055f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "04b681e1190310f6148595f3d80260ae13299d43"
}]