1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/ruby/yield.json

263 lines
7.4 KiB
JSON
Raw Normal View History

2016-10-26 20:27:38 +03:00
[{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "5ce6c7b328013488430cd153a9fc8afca19a8197",
2016-10-26 20:27:38 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "03b3dff0de9603d991f206852c965ab222443248"
2016-10-26 20:27:38 +03:00
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "03b3dff0de9603d991f206852c965ab222443248",
2016-10-26 20:27:38 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "000d142dd8ee00c1f7ffcc6e7ae25528f8792536"
2016-10-26 20:27:38 +03:00
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "000d142dd8ee00c1f7ffcc6e7ae25528f8792536",
2016-10-26 20:27:38 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "a024c95356ddf57788ee4eee8c96e1fc1ebc3c22"
2016-10-26 20:27:38 +03:00
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "a024c95356ddf57788ee4eee8c96e1fc1ebc3c22",
2016-10-26 20:27:38 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "e0c443d82a1c0a705e20752ced25fb0b25bfa1b5"
2016-10-26 20:27:38 +03:00
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "e0c443d82a1c0a705e20752ced25fb0b25bfa1b5",
2016-10-26 20:27:38 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "376455793e93c15f36a489e7f7f53ea8972b4c5a"
2016-10-26 20:27:38 +03:00
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "376455793e93c15f36a489e7f7f53ea8972b4c5a",
2016-10-26 20:27:38 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "8b6e970f84f2ad7ccc68e6855c0e322dc19bdb28"
2016-10-26 20:27:38 +03:00
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "8b6e970f84f2ad7ccc68e6855c0e322dc19bdb28",
2016-10-26 20:27:38 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "1bbf163e3c2aa5c8255350f9f69d9a66590a8476"
2016-10-26 20:27:38 +03:00
}]