1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/ruby/yield.json
2016-10-27 12:47:27 -07:00

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": "a128688e1771112485fc878626c715a641f52abd",
"gitDir": "test/corpus/repos/ruby",
"sha2": "ca31ec6ddeb1e83df8f164825fc1fbf0c7b05b9d"
}
,{
"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": "ca31ec6ddeb1e83df8f164825fc1fbf0c7b05b9d",
"gitDir": "test/corpus/repos/ruby",
"sha2": "fe27072f83f9942cb30579154ddc41f7bec3bc16"
}
,{
"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": "fe27072f83f9942cb30579154ddc41f7bec3bc16",
"gitDir": "test/corpus/repos/ruby",
"sha2": "14a300442c3e04ae637a68918737e70454e90387"
}
,{
"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": "14a300442c3e04ae637a68918737e70454e90387",
"gitDir": "test/corpus/repos/ruby",
"sha2": "13700f14bc0da1f08f54c4bd8a627723abf797e6"
}
,{
"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": "13700f14bc0da1f08f54c4bd8a627723abf797e6",
"gitDir": "test/corpus/repos/ruby",
"sha2": "0a5b864c4a6f2b352355773ef0a4d0390f3789c9"
}
,{
"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": "0a5b864c4a6f2b352355773ef0a4d0390f3789c9",
"gitDir": "test/corpus/repos/ruby",
"sha2": "f705cb52cf52b50bf57c174f16dc59462b697d1a"
}
,{
"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": "f705cb52cf52b50bf57c174f16dc59462b697d1a",
"gitDir": "test/corpus/repos/ruby",
"sha2": "6bdc4e089d23bdee34bd2ab5911aa0e4c166f792"
}]