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/while.json

353 lines
10 KiB
JSON
Raw Normal View History

[{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "1bbf163e3c2aa5c8255350f9f69d9a66590a8476",
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "09e115fe3cd45148d7530921e9c4549fea921738"
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "09e115fe3cd45148d7530921e9c4549fea921738",
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "43f72dc02634f5da67ba74282f20e3ed3dc59531"
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "43f72dc02634f5da67ba74282f20e3ed3dc59531",
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "e0cd179147ec6bee6ca95a26b2cbb25d337d9675"
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "e0cd179147ec6bee6ca95a26b2cbb25d337d9675",
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "610ef57200a174d718e25d80bdcda7f4ad888118"
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "610ef57200a174d718e25d80bdcda7f4ad888118",
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "de8e6233a6d8135e3cdcff8ab55220b0cd8ca6d7"
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "de8e6233a6d8135e3cdcff8ab55220b0cd8ca6d7",
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "b80839def698cac478a7909d3a4de740d2fd5886"
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "b80839def698cac478a7909d3a4de740d2fd5886",
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "2a0ab0f4c456df731e938d10e7b53ba6e38ff9e7"
}]