mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
353 lines
10 KiB
JSON
353 lines
10 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-until-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"until.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' until statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'done' until statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"until.rb"
|
|
],
|
|
"sha1": "22932de6f138b7abdc0bd5875408a72c065ad1c4",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "c994bcc266ac4463a63d7ef21062ab91ed805d8f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-until-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"until.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' until statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' until statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'done' until statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"until.rb"
|
|
],
|
|
"sha1": "c994bcc266ac4463a63d7ef21062ab91ed805d8f",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "be2d09b23b7fdc0e9363fddd48fc41b3989f3ae3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-until-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"until.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'done' until statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"until.rb"
|
|
],
|
|
"sha1": "be2d09b23b7fdc0e9363fddd48fc41b3989f3ae3",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "7bc3e802b1c4ee9d6b598714aaf2603a6ddd9084"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-until-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"until.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'done' until statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"until.rb"
|
|
],
|
|
"sha1": "7bc3e802b1c4ee9d6b598714aaf2603a6ddd9084",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "18a2a4d643729f9153c19617105ef1a1fb5be054"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-until-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"until.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' until statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' until statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'done' until statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' until statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"until.rb"
|
|
],
|
|
"sha1": "18a2a4d643729f9153c19617105ef1a1fb5be054",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "b031040a6ba55003c84a3f51a4e0695d375ce391"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-until-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"until.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' until statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'done' until statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"until.rb"
|
|
],
|
|
"sha1": "b031040a6ba55003c84a3f51a4e0695d375ce391",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "2bb62330f81254d34c9538a1d3e9ddfb4ac11421"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-until-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"until.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' until statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"until.rb"
|
|
],
|
|
"sha1": "2bb62330f81254d34c9538a1d3e9ddfb4ac11421",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "7d2ffedb86e5a7ebe269424b2b59ec8f7cf7b7ad"
|
|
}]
|