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": "7de63c31cbe1320f2a2ed76af1c45c2f1b9ecf7e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "1a0f45a94914df274d477c17bbef6cc00a441fe6"
|
|
}
|
|
,{
|
|
"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": "1a0f45a94914df274d477c17bbef6cc00a441fe6",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "26fe5e31cbe4c6b42187c241779fcc6c3868d0fc"
|
|
}
|
|
,{
|
|
"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": "26fe5e31cbe4c6b42187c241779fcc6c3868d0fc",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "86362937320631bc2b2b593535826fbcc28af759"
|
|
}
|
|
,{
|
|
"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": "86362937320631bc2b2b593535826fbcc28af759",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "395c85f60d60158787c1bb40d5fe7cfa1a12de4e"
|
|
}
|
|
,{
|
|
"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": "395c85f60d60158787c1bb40d5fe7cfa1a12de4e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "854b99d4feb128b7181135e60c3dbbc182df21ad"
|
|
}
|
|
,{
|
|
"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": "854b99d4feb128b7181135e60c3dbbc182df21ad",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "d9b6f6c5a47f7f8f11cc41dcb831e168963ff5b3"
|
|
}
|
|
,{
|
|
"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": "d9b6f6c5a47f7f8f11cc41dcb831e168963ff5b3",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "8c66e54252fffce9f1d2be5ec107d23b27c3c3f2"
|
|
}]
|