2016-10-25 21:36:30 +03:00
|
|
|
[{
|
2016-11-02 23:42:06 +03:00
|
|
|
"testCaseDescription": "ruby-when-insert-test",
|
2016-10-25 21:36:30 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 23:42:06 +03:00
|
|
|
"when.rb": [
|
2016-10-25 21:36:30 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:42:06 +03:00
|
|
|
"summary": "Added the 'foo' case statement"
|
2016-10-25 21:36:30 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 23:42:06 +03:00
|
|
|
"when.rb"
|
2016-10-25 21:36:30 +03:00
|
|
|
],
|
2016-11-02 23:42:06 +03:00
|
|
|
"sha1": "7699a00ae4f2db5a3570048f56b83158c513a7e1",
|
2016-10-25 21:36:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 23:42:06 +03:00
|
|
|
"sha2": "c27a43cc441ebb84e2fecd86ad9569bda89b6f66"
|
2016-10-25 21:36:30 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 23:42:06 +03:00
|
|
|
"testCaseDescription": "ruby-when-replacement-insert-test",
|
2016-10-25 21:36:30 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 23:42:06 +03:00
|
|
|
"when.rb": [
|
2016-10-25 21:36:30 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:42:06 +03:00
|
|
|
"summary": "Added the 'foo' case statement"
|
2016-10-25 21:36:30 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:42:06 +03:00
|
|
|
"summary": "Added the 'foo' case statement"
|
2016-10-25 21:36:30 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 23:42:06 +03:00
|
|
|
"when.rb"
|
2016-10-25 21:36:30 +03:00
|
|
|
],
|
2016-11-02 23:42:06 +03:00
|
|
|
"sha1": "c27a43cc441ebb84e2fecd86ad9569bda89b6f66",
|
2016-10-25 21:36:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 23:42:06 +03:00
|
|
|
"sha2": "7d9e6213787892e24789ffd2ff01cde77d7ae296"
|
2016-10-25 21:36:30 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 23:42:06 +03:00
|
|
|
"testCaseDescription": "ruby-when-delete-insert-test",
|
2016-10-25 21:36:30 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 23:42:06 +03:00
|
|
|
"when.rb": [
|
2016-10-25 21:36:30 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-02 23:42:06 +03:00
|
|
|
3
|
2016-10-25 21:36:30 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2016-11-02 23:42:06 +03:00
|
|
|
6
|
2016-10-25 21:36:30 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:42:06 +03:00
|
|
|
"summary": "Deleted the 'baz' identifier in a when comparison"
|
2016-10-25 21:36:30 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 23:42:06 +03:00
|
|
|
"when.rb"
|
2016-10-25 21:36:30 +03:00
|
|
|
],
|
2016-11-02 23:42:06 +03:00
|
|
|
"sha1": "7d9e6213787892e24789ffd2ff01cde77d7ae296",
|
2016-10-25 21:36:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 23:42:06 +03:00
|
|
|
"sha2": "c41aa9aae0ac7962a4424529f5fc7979c5981ba0"
|
2016-10-25 21:36:30 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 23:42:06 +03:00
|
|
|
"testCaseDescription": "ruby-when-replacement-test",
|
2016-10-25 21:36:30 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 23:42:06 +03:00
|
|
|
"when.rb": [
|
2016-10-25 21:36:30 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-02 23:42:06 +03:00
|
|
|
3
|
2016-10-25 21:36:30 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2016-11-02 23:42:06 +03:00
|
|
|
6
|
2016-10-25 21:36:30 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:42:06 +03:00
|
|
|
"summary": "Added the 'baz' identifier in a when comparison"
|
2016-10-25 21:36:30 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 23:42:06 +03:00
|
|
|
"when.rb"
|
2016-10-25 21:36:30 +03:00
|
|
|
],
|
2016-11-02 23:42:06 +03:00
|
|
|
"sha1": "c41aa9aae0ac7962a4424529f5fc7979c5981ba0",
|
2016-10-25 21:36:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 23:42:06 +03:00
|
|
|
"sha2": "9e3e5119a2fd787bd1d50679f739811a95258a95"
|
2016-10-25 21:36:30 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 23:42:06 +03:00
|
|
|
"testCaseDescription": "ruby-when-delete-replacement-test",
|
2016-10-25 21:36:30 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 23:42:06 +03:00
|
|
|
"when.rb": [
|
2016-10-25 21:36:30 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:42:06 +03:00
|
|
|
"summary": "Deleted the 'foo' case statement"
|
2016-10-25 21:36:30 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:42:06 +03:00
|
|
|
"summary": "Deleted the 'foo' case statement"
|
2016-10-25 21:36:30 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:42:06 +03:00
|
|
|
"summary": "Added the 'foo' case statement"
|
2016-10-25 21:36:30 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 23:42:06 +03:00
|
|
|
"when.rb"
|
2016-10-25 21:36:30 +03:00
|
|
|
],
|
2016-11-02 23:42:06 +03:00
|
|
|
"sha1": "9e3e5119a2fd787bd1d50679f739811a95258a95",
|
2016-10-25 21:36:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 23:42:06 +03:00
|
|
|
"sha2": "6b668407a0448f0bc0d1390c7a9d5a27d894c0fb"
|
2016-10-25 21:36:30 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 23:42:06 +03:00
|
|
|
"testCaseDescription": "ruby-when-delete-test",
|
2016-10-25 21:36:30 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 23:42:06 +03:00
|
|
|
"when.rb": [
|
2016-10-25 21:36:30 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:42:06 +03:00
|
|
|
"summary": "Deleted the 'foo' case statement"
|
2016-10-25 21:36:30 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 23:42:06 +03:00
|
|
|
"when.rb"
|
2016-10-25 21:36:30 +03:00
|
|
|
],
|
2016-11-02 23:42:06 +03:00
|
|
|
"sha1": "6b668407a0448f0bc0d1390c7a9d5a27d894c0fb",
|
2016-10-25 21:36:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 23:42:06 +03:00
|
|
|
"sha2": "46deadb9ce696bf99314411f7cf56519dc9d9a03"
|
2016-10-25 21:36:30 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 23:42:06 +03:00
|
|
|
"testCaseDescription": "ruby-when-delete-rest-test",
|
2016-10-25 21:36:30 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 23:42:06 +03:00
|
|
|
"when.rb": [
|
2016-10-25 21:36:30 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:42:06 +03:00
|
|
|
"summary": "Deleted the 'foo' case statement"
|
2016-10-25 21:36:30 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 23:42:06 +03:00
|
|
|
"when.rb"
|
2016-10-25 21:36:30 +03:00
|
|
|
],
|
2016-11-02 23:42:06 +03:00
|
|
|
"sha1": "46deadb9ce696bf99314411f7cf56519dc9d9a03",
|
2016-10-25 21:36:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 23:42:06 +03:00
|
|
|
"sha2": "ff122969324986ab2efa865790c05098cf5bf7eb"
|
2016-10-25 21:36:30 +03:00
|
|
|
}]
|