1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/ruby/yield.json
2016-11-02 10:52:40 -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": "5ce6c7b328013488430cd153a9fc8afca19a8197",
"gitDir": "test/corpus/repos/ruby",
"sha2": "03b3dff0de9603d991f206852c965ab222443248"
}
,{
"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": "03b3dff0de9603d991f206852c965ab222443248",
"gitDir": "test/corpus/repos/ruby",
"sha2": "000d142dd8ee00c1f7ffcc6e7ae25528f8792536"
}
,{
"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": "000d142dd8ee00c1f7ffcc6e7ae25528f8792536",
"gitDir": "test/corpus/repos/ruby",
"sha2": "a024c95356ddf57788ee4eee8c96e1fc1ebc3c22"
}
,{
"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": "a024c95356ddf57788ee4eee8c96e1fc1ebc3c22",
"gitDir": "test/corpus/repos/ruby",
"sha2": "e0c443d82a1c0a705e20752ced25fb0b25bfa1b5"
}
,{
"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": "e0c443d82a1c0a705e20752ced25fb0b25bfa1b5",
"gitDir": "test/corpus/repos/ruby",
"sha2": "376455793e93c15f36a489e7f7f53ea8972b4c5a"
}
,{
"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": "376455793e93c15f36a489e7f7f53ea8972b4c5a",
"gitDir": "test/corpus/repos/ruby",
"sha2": "8b6e970f84f2ad7ccc68e6855c0e322dc19bdb28"
}
,{
"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": "8b6e970f84f2ad7ccc68e6855c0e322dc19bdb28",
"gitDir": "test/corpus/repos/ruby",
"sha2": "1bbf163e3c2aa5c8255350f9f69d9a66590a8476"
}]