mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
187 lines
5.2 KiB
JSON
187 lines
5.2 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-elsif-setup-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"elsif.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"elsif.rb"
|
|
],
|
|
"sha1": "94ca7b95dd13dc6bb6bd514c8a7a081042e1ff4c",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "c235c7ae6f69d4d9cf2441cbe539c59aa754ffb2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-elsif-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"elsif.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'baz' elsif block"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"elsif.rb"
|
|
],
|
|
"sha1": "c235c7ae6f69d4d9cf2441cbe539c59aa754ffb2",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "074fc552f8f99d5ee0ee0cd775275e7314a1d0c9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-elsif-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"elsif.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'qoz()' function call in the 'baz' elsif block"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"elsif.rb"
|
|
],
|
|
"sha1": "074fc552f8f99d5ee0ee0cd775275e7314a1d0c9",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "40957312978a663c403790b436bca9638e089afe"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-elsif-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"elsif.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'qoz()' function call in the 'baz' elsif block"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"elsif.rb"
|
|
],
|
|
"sha1": "40957312978a663c403790b436bca9638e089afe",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "e0a27b711317613600c72ab35a8118fe45d0c610"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-elsif-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"elsif.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'baz' elsif block"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"elsif.rb"
|
|
],
|
|
"sha1": "e0a27b711317613600c72ab35a8118fe45d0c610",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "f750d245cd81332a5f2294a4007a8641f48e65c7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-elsif-teardown-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"elsif.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"elsif.rb"
|
|
],
|
|
"sha1": "f750d245cd81332a5f2294a4007a8641f48e65c7",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "141ffb684fc9a6254fc51dec118d0a7626dc5cf1"
|
|
}]
|