mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
377 lines
11 KiB
JSON
377 lines
11 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-unless-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"unless.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' unless statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"unless.rb"
|
|
],
|
|
"sha1": "615bf8e036a9df2d56bd07699f84eda4a122d4b4",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "e25b8f509a4094dd1233f6dcb035b5128290b2ce"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-unless-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"unless.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' unless statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y' unless statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' unless statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"unless.rb"
|
|
],
|
|
"sha1": "e25b8f509a4094dd1233f6dcb035b5128290b2ce",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "e5f60cda4db577c8221b93cfc1a8d34bdf3bcb4b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-unless-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"unless.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'x' identifier with the 'foo' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an else block"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y' unless statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"unless.rb"
|
|
],
|
|
"sha1": "e5f60cda4db577c8221b93cfc1a8d34bdf3bcb4b",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "a52ad5a6e30d00b6a9c06a44324cedd559c6783b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-unless-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"unless.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'foo' identifier with the 'x' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an else block"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y' unless statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"unless.rb"
|
|
],
|
|
"sha1": "a52ad5a6e30d00b6a9c06a44324cedd559c6783b",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "57e7f7cefe4c901052046217ca089ba1d4007b41"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-unless-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"unless.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
10,
|
|
1
|
|
],
|
|
"end": [
|
|
14,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' unless statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"unless.rb"
|
|
],
|
|
"sha1": "57e7f7cefe4c901052046217ca089ba1d4007b41",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "3de2b05e2b0646bbdc5c50fdb9058bfc6c4373f8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-unless-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"unless.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' unless statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"unless.rb"
|
|
],
|
|
"sha1": "3de2b05e2b0646bbdc5c50fdb9058bfc6c4373f8",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "991e9b1ff6b88c6a43d5529f0dbacd75e58c4057"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-unless-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"unless.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' unless statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y' unless statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"unless.rb"
|
|
],
|
|
"sha1": "991e9b1ff6b88c6a43d5529f0dbacd75e58c4057",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "6cd447b15e0c62a53be94d1df56d1a508dce6f10"
|
|
}]
|