1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 08:54:14 +03:00
semantic/test/corpus/diff-summaries/ruby/unless.json
2016-10-27 09:24:28 -07:00

401 lines
12 KiB
JSON

[{
"testCaseDescription": "ruby-unless-insert-test",
"expectedResult": {
"changes": {
"unless.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
5,
4
]
}
},
"summary": "Added the 'foo' unless statement"
}
]
},
"errors": {}
},
"filePaths": [
"unless.rb"
],
"sha1": "9bef18b9a0f7469bdc1d3df685726cf857a5f129",
"gitDir": "test/corpus/repos/ruby",
"sha2": "19437306d2c04ab481b8998a7d210698db1f83ab"
}
,{
"testCaseDescription": "ruby-unless-replacement-insert-test",
"expectedResult": {
"changes": {
"unless.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Added the 'x' unless statement"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
4,
4
]
}
},
"summary": "Added the 'y' unless statement"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
9,
4
]
}
},
"summary": "Added the 'foo' unless statement"
}
]
},
"errors": {}
},
"filePaths": [
"unless.rb"
],
"sha1": "19437306d2c04ab481b8998a7d210698db1f83ab",
"gitDir": "test/corpus/repos/ruby",
"sha2": "6241d6d4ae0fc14b2f5fbc6b959eaf8ff167c21a"
}
,{
"testCaseDescription": "ruby-unless-delete-insert-test",
"expectedResult": {
"changes": {
"unless.rb": [
{
"span": {
"replace": [
{
"start": [
1,
8
],
"end": [
1,
9
]
},
{
"start": [
1,
8
],
"end": [
1,
11
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'foo' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
9
],
"end": [
2,
1
]
},
{
"start": [
2,
3
],
"end": [
2,
6
]
}
]
},
"summary": "Replaced the '\n' then_block with the 'bar' identifier"
},
{
"span": {
"insert": {
"start": [
4,
3
],
"end": [
4,
6
]
}
},
"summary": "Added the 'bat' identifier"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
4,
4
]
}
},
"summary": "Deleted the 'y' unless statement"
}
]
},
"errors": {}
},
"filePaths": [
"unless.rb"
],
"sha1": "6241d6d4ae0fc14b2f5fbc6b959eaf8ff167c21a",
"gitDir": "test/corpus/repos/ruby",
"sha2": "c79e975f049304d09d23ccfd66b81b7fffee55b6"
}
,{
"testCaseDescription": "ruby-unless-replacement-test",
"expectedResult": {
"changes": {
"unless.rb": [
{
"span": {
"replace": [
{
"start": [
1,
8
],
"end": [
1,
11
]
},
{
"start": [
1,
8
],
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'x' identifier"
},
{
"span": {
"replace": [
{
"start": [
2,
3
],
"end": [
2,
6
]
},
{
"start": [
1,
9
],
"end": [
2,
1
]
}
]
},
"summary": "Replaced the 'bar' identifier with the '\n' then_block"
},
{
"span": {
"delete": {
"start": [
4,
3
],
"end": [
4,
6
]
}
},
"summary": "Deleted the 'bat' identifier"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
4,
4
]
}
},
"summary": "Added the 'y' unless statement"
}
]
},
"errors": {}
},
"filePaths": [
"unless.rb"
],
"sha1": "c79e975f049304d09d23ccfd66b81b7fffee55b6",
"gitDir": "test/corpus/repos/ruby",
"sha2": "d27725d1b234a5010556432241aeb4aea58878cc"
}
,{
"testCaseDescription": "ruby-unless-delete-replacement-test",
"expectedResult": {
"changes": {
"unless.rb": [
{
"span": {
"delete": {
"start": [
10,
1
],
"end": [
14,
4
]
}
},
"summary": "Deleted the 'foo' unless statement"
}
]
},
"errors": {}
},
"filePaths": [
"unless.rb"
],
"sha1": "d27725d1b234a5010556432241aeb4aea58878cc",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3a616c7a915b841a8abf7e2ba33e4028dd7d2688"
}
,{
"testCaseDescription": "ruby-unless-delete-test",
"expectedResult": {
"changes": {
"unless.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
5,
4
]
}
},
"summary": "Deleted the 'foo' unless statement"
}
]
},
"errors": {}
},
"filePaths": [
"unless.rb"
],
"sha1": "3a616c7a915b841a8abf7e2ba33e4028dd7d2688",
"gitDir": "test/corpus/repos/ruby",
"sha2": "5b55e9cb95f761a799b3ba1ac21bb2deb43238de"
}
,{
"testCaseDescription": "ruby-unless-delete-rest-test",
"expectedResult": {
"changes": {
"unless.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted the 'x' unless statement"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
4,
4
]
}
},
"summary": "Deleted the 'y' unless statement"
}
]
},
"errors": {}
},
"filePaths": [
"unless.rb"
],
"sha1": "5b55e9cb95f761a799b3ba1ac21bb2deb43238de",
"gitDir": "test/corpus/repos/ruby",
"sha2": "e5f91fa8a9472bd4f913919d53f81feb07f00c0c"
}]