mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
293 lines
8.7 KiB
JSON
293 lines
8.7 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-if-unless-modifiers-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-unless-modifiers.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' unless statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-unless-modifiers.rb"
|
|
],
|
|
"sha1": "71b6ea047c38fa803b820d3d5b9bcffe1a7e45c3",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "6f4bedddfb2fc33a362302e7aee3b8a55df3b51c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-if-unless-modifiers-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-unless-modifiers.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' unless statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-unless-modifiers.rb"
|
|
],
|
|
"sha1": "6f4bedddfb2fc33a362302e7aee3b8a55df3b51c",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "a3e5266b9599e9ce600cc330cf4c9e074cbc3cf6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-if-unless-modifiers-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-unless-modifiers.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' unless statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-unless-modifiers.rb"
|
|
],
|
|
"sha1": "a3e5266b9599e9ce600cc330cf4c9e074cbc3cf6",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "1675cd38aa0d173dab0ae9f5e3998be80f7484cb"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-if-unless-modifiers-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-unless-modifiers.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' unless statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-unless-modifiers.rb"
|
|
],
|
|
"sha1": "1675cd38aa0d173dab0ae9f5e3998be80f7484cb",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "83e53fdafdcfe77b9b79c68cb1a29eabc119acf6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-if-unless-modifiers-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-unless-modifiers.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' unless statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-unless-modifiers.rb"
|
|
],
|
|
"sha1": "83e53fdafdcfe77b9b79c68cb1a29eabc119acf6",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "63a60579889aeeb960dc0bc2d5b4df2922cfa07b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-if-unless-modifiers-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-unless-modifiers.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' unless statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-unless-modifiers.rb"
|
|
],
|
|
"sha1": "63a60579889aeeb960dc0bc2d5b4df2922cfa07b",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "e3ca436110c03c8d6c5204e7ad7a82cb339c37b5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-if-unless-modifiers-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-unless-modifiers.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-unless-modifiers.rb"
|
|
],
|
|
"sha1": "e3ca436110c03c8d6c5204e7ad7a82cb339c37b5",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "5671141da4d82da04a1bcf712bc895b83bf57688"
|
|
}]
|