1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/ruby/while.json
2016-10-26 12:54:21 -07:00

353 lines
10 KiB
JSON

[{
"testCaseDescription": "ruby-while-insert-test",
"expectedResult": {
"changes": {
"while.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Added the 'foo' while statement"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
14
]
}
},
"summary": "Added the 'run' while statement"
}
]
},
"errors": {}
},
"filePaths": [
"while.rb"
],
"sha1": "be1c1b085e88545406e186efe90d434bd23adf65",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3d304a766de2d77facdf678c747a425bcf8e374c"
}
,{
"testCaseDescription": "ruby-while-replacement-insert-test",
"expectedResult": {
"changes": {
"while.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Added the 'foo' while statement"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
5,
4
]
}
},
"summary": "Added the 'foo' while statement"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
14
]
}
},
"summary": "Added the 'run' while statement"
}
]
},
"errors": {}
},
"filePaths": [
"while.rb"
],
"sha1": "3d304a766de2d77facdf678c747a425bcf8e374c",
"gitDir": "test/corpus/repos/ruby",
"sha2": "e72f7ed4a1048f2b423011d7c0e0d38c0991d708"
}
,{
"testCaseDescription": "ruby-while-delete-insert-test",
"expectedResult": {
"changes": {
"while.rb": [
{
"span": {
"delete": {
"start": [
2,
3
],
"end": [
2,
6
]
}
},
"summary": "Deleted the 'bar' identifier"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
14
]
}
},
"summary": "Added the 'run' while statement"
}
]
},
"errors": {}
},
"filePaths": [
"while.rb"
],
"sha1": "e72f7ed4a1048f2b423011d7c0e0d38c0991d708",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3bd7fc7838f843578c793dc2b03c01a0691f18d1"
}
,{
"testCaseDescription": "ruby-while-replacement-test",
"expectedResult": {
"changes": {
"while.rb": [
{
"span": {
"insert": {
"start": [
2,
3
],
"end": [
2,
6
]
}
},
"summary": "Added the 'bar' identifier"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
14
]
}
},
"summary": "Deleted the 'run' while statement"
}
]
},
"errors": {}
},
"filePaths": [
"while.rb"
],
"sha1": "3bd7fc7838f843578c793dc2b03c01a0691f18d1",
"gitDir": "test/corpus/repos/ruby",
"sha2": "895766b520264089cca6a8dd11c8494af1a7e37a"
}
,{
"testCaseDescription": "ruby-while-delete-replacement-test",
"expectedResult": {
"changes": {
"while.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted the 'foo' while statement"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
5,
4
]
}
},
"summary": "Deleted the 'foo' while statement"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
14
]
}
},
"summary": "Deleted the 'run' while statement"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
6,
4
]
}
},
"summary": "Added the 'foo' while statement"
}
]
},
"errors": {}
},
"filePaths": [
"while.rb"
],
"sha1": "895766b520264089cca6a8dd11c8494af1a7e37a",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3027f2bd415ad7524ac1b12865fca61387e8811d"
}
,{
"testCaseDescription": "ruby-while-delete-test",
"expectedResult": {
"changes": {
"while.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted the 'foo' while statement"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
14
]
}
},
"summary": "Deleted the 'run' while statement"
}
]
},
"errors": {}
},
"filePaths": [
"while.rb"
],
"sha1": "3027f2bd415ad7524ac1b12865fca61387e8811d",
"gitDir": "test/corpus/repos/ruby",
"sha2": "fdb1c9535eaa5b5f9e242248ae4cbbc633864971"
}
,{
"testCaseDescription": "ruby-while-delete-rest-test",
"expectedResult": {
"changes": {
"while.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted the 'foo' while statement"
}
]
},
"errors": {}
},
"filePaths": [
"while.rb"
],
"sha1": "fdb1c9535eaa5b5f9e242248ae4cbbc633864971",
"gitDir": "test/corpus/repos/ruby",
"sha2": "b3019463f3d9fbf1c167e5587fbdac3d3b4409ad"
}]