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
2016-10-27 20:44:36 -05:00

407 lines
12 KiB
JSON

[{
"testCaseDescription": "javascript-class-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
87
]
}
},
"summary": "Added the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "fa5f6ba0970470c2f3a9dd90b3f47c921aa38086",
"gitDir": "test/corpus/repos/javascript",
"sha2": "60e1f56908cd59e3488046f00fd94963eea48955"
}
,{
"testCaseDescription": "javascript-class-replacement-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
85
]
}
},
"summary": "Added the 'Foo' class"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
87
]
}
},
"summary": "Added the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "60e1f56908cd59e3488046f00fd94963eea48955",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9f1df2fb0dfb0791d2387fb8a2e75a1159dac2fd"
}
,{
"testCaseDescription": "javascript-class-delete-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
23
]
},
{
"start": [
1,
20
],
"end": [
1,
23
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'one' identifier in the one method of the 'Foo' class"
},
{
"span": {
"insert": {
"start": [
1,
42
],
"end": [
1,
62
]
}
},
"summary": "Added the 'two' method in the Foo class"
},
{
"span": {
"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
]
}
},
"summary": "Deleted the 'baz' method in the Foo class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "9f1df2fb0dfb0791d2387fb8a2e75a1159dac2fd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "568a591502f9850498d6329be8c6236df7924879"
}
,{
"testCaseDescription": "javascript-class-replacement-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
23
]
},
{
"start": [
1,
20
],
"end": [
1,
23
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'foo' identifier in the foo method of the 'Foo' class"
},
{
"span": {
"insert": {
"start": [
1,
42
],
"end": [
1,
62
]
}
},
"summary": "Added the 'bar' method in the Foo class"
},
{
"span": {
"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
]
}
},
"summary": "Deleted the 'three' method in the Foo class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "568a591502f9850498d6329be8c6236df7924879",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4bd3b0c26e89171cac9fd07e81b1e9d0d6ebb58d"
}
,{
"testCaseDescription": "javascript-class-delete-replacement-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
85
]
}
},
"summary": "Deleted the 'Foo' class"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
87
]
}
},
"summary": "Deleted the 'Foo' class"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
85
]
}
},
"summary": "Added the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "4bd3b0c26e89171cac9fd07e81b1e9d0d6ebb58d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6c287ca2c5aa5d58811b32e4c413e68c78c1b5a4"
}
,{
"testCaseDescription": "javascript-class-delete-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
87
]
}
},
"summary": "Deleted the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "6c287ca2c5aa5d58811b32e4c413e68c78c1b5a4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e4f8ba03545f2d75a5d47baafbd7d1c2b614389b"
}
,{
"testCaseDescription": "javascript-class-delete-rest-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
85
]
}
},
"summary": "Deleted the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "e4f8ba03545f2d75a5d47baafbd7d1c2b614389b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a8015feb580149eb3034c3d28ba2361b04756214"
}]