mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
263 lines
7.4 KiB
JSON
263 lines
7.4 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-yield-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"yield.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' yield statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"yield.rb"
|
|
],
|
|
"sha1": "39ae806b1ae634068395b35085944e405461348f",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "890cb263430ac399399afd829334ed051d690a27"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-yield-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"yield.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'empty' yield statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' yield statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"yield.rb"
|
|
],
|
|
"sha1": "890cb263430ac399399afd829334ed051d690a27",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "3a0e976f298467135bc50d49cf557552008fc97f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-yield-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"yield.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"yield.rb"
|
|
],
|
|
"sha1": "3a0e976f298467135bc50d49cf557552008fc97f",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "075f4112d52bbfaa890d4eb965d490712fa20aac"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-yield-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"yield.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"yield.rb"
|
|
],
|
|
"sha1": "075f4112d52bbfaa890d4eb965d490712fa20aac",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "a7e34fab4b84241bfd724a05fccfc6d5f62274c5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-yield-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"yield.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'empty' yield statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' yield statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'empty' yield statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"yield.rb"
|
|
],
|
|
"sha1": "a7e34fab4b84241bfd724a05fccfc6d5f62274c5",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "cd77d25b8e2161e68ddab6a4710f60a58bd86d23"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-yield-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"yield.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' yield statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"yield.rb"
|
|
],
|
|
"sha1": "cd77d25b8e2161e68ddab6a4710f60a58bd86d23",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "d5871bc2a7e304070a570e98a6e3c7ff02c587f3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-yield-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"yield.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'empty' yield statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"yield.rb"
|
|
],
|
|
"sha1": "d5871bc2a7e304070a570e98a6e3c7ff02c587f3",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "dbe070995f875acff55ccfcf16c77c9f733468a0"
|
|
}]
|