mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
407 lines
12 KiB
JSON
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": "1687fbc8bd65353ada2371b087e39706dca32445",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "892b014468c1b6715f96775617a563dad96c8669"
|
|
}
|
|
,{
|
|
"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": "892b014468c1b6715f96775617a563dad96c8669",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f9184a733a67b13b41a2b44160dc547f59a2af0a"
|
|
}
|
|
,{
|
|
"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": "f9184a733a67b13b41a2b44160dc547f59a2af0a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "361b5260c3fa8a1d0065a5ab43df1df67cc84a5a"
|
|
}
|
|
,{
|
|
"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": "361b5260c3fa8a1d0065a5ab43df1df67cc84a5a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "51722ab39b8e1e9252c444566eb8352cae1064f6"
|
|
}
|
|
,{
|
|
"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": "51722ab39b8e1e9252c444566eb8352cae1064f6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "04ba0713087c4d698aa345091e64eb16a5697e31"
|
|
}
|
|
,{
|
|
"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": "04ba0713087c4d698aa345091e64eb16a5697e31",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "dfa72c8a38e310adfe9ecff859982b078f9da0c6"
|
|
}
|
|
,{
|
|
"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": "dfa72c8a38e310adfe9ecff859982b078f9da0c6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2e011ecd3b15a3f3ed45a39f96dd8534d0714b88"
|
|
}]
|