1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 17:05:33 +03:00
semantic/test/corpus/diff-summaries/ruby/interpolation.json

461 lines
14 KiB
JSON
Raw Normal View History

2016-10-21 23:55:00 +03:00
[{
"testCaseDescription": "ruby-interpolation-insert-test",
"expectedResult": {
"changes": {
"symbol.rb": [
{
"span": {
"insert": {
"start": [
1,
9
],
"end": [
1,
12
]
}
},
"summary": "Added the 'bar' identifier"
},
{
"span": {
"insert": {
"start": [
2,
8
],
"end": [
2,
11
]
}
},
"summary": "Added the 'bar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"symbol.rb"
],
2016-10-27 01:44:53 +03:00
"sha1": "2d5fde89792d96a1c549defc6c27940fd80f0179",
2016-10-21 23:55:00 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-27 01:44:53 +03:00
"sha2": "ef7e9cdb379e419ed20042248b4d7cbaa7796d07"
2016-10-21 23:55:00 +03:00
}
,{
"testCaseDescription": "ruby-interpolation-replacement-insert-test",
"expectedResult": {
"changes": {
"symbol.rb": [
{
"span": {
"insert": {
"start": [
1,
9
],
"end": [
1,
12
]
}
},
"summary": "Added the 'foo' identifier"
},
{
"span": {
"insert": {
"start": [
2,
8
],
"end": [
2,
11
]
}
},
"summary": "Added the 'foo' identifier"
},
{
"span": {
"insert": {
"start": [
3,
9
],
"end": [
3,
12
]
}
},
"summary": "Added the 'bar' identifier"
},
{
"span": {
"insert": {
"start": [
4,
8
],
"end": [
4,
11
]
}
},
"summary": "Added the 'bar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"symbol.rb"
],
2016-10-27 01:44:53 +03:00
"sha1": "ef7e9cdb379e419ed20042248b4d7cbaa7796d07",
2016-10-21 23:55:00 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-27 01:44:53 +03:00
"sha2": "79aa843dc7f3e8342510e38d71efdbf2374fd593"
2016-10-21 23:55:00 +03:00
}
,{
"testCaseDescription": "ruby-interpolation-delete-insert-test",
"expectedResult": {
"changes": {
"symbol.rb": [
{
"span": {
"replace": [
{
"start": [
1,
9
],
"end": [
1,
12
]
},
{
"start": [
1,
9
],
"end": [
1,
12
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'bar' identifier"
},
{
"span": {
"replace": [
{
"start": [
2,
8
],
"end": [
2,
11
]
},
{
"start": [
2,
8
],
"end": [
2,
11
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'bar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"symbol.rb"
],
2016-10-27 01:44:53 +03:00
"sha1": "79aa843dc7f3e8342510e38d71efdbf2374fd593",
2016-10-21 23:55:00 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-27 01:44:53 +03:00
"sha2": "74512c7d1132c385f152044d78120e9464b0de0f"
2016-10-21 23:55:00 +03:00
}
,{
"testCaseDescription": "ruby-interpolation-replacement-test",
"expectedResult": {
"changes": {
"symbol.rb": [
{
"span": {
"replace": [
{
"start": [
1,
9
],
"end": [
1,
12
]
},
{
"start": [
1,
9
],
"end": [
1,
12
]
}
]
},
"summary": "Replaced the 'bar' identifier with the 'foo' identifier"
},
{
"span": {
"replace": [
{
"start": [
2,
8
],
"end": [
2,
11
]
},
{
"start": [
2,
8
],
"end": [
2,
11
]
}
]
},
"summary": "Replaced the 'bar' identifier with the 'foo' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"symbol.rb"
],
2016-10-27 01:44:53 +03:00
"sha1": "74512c7d1132c385f152044d78120e9464b0de0f",
2016-10-21 23:55:00 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-27 01:44:53 +03:00
"sha2": "cfe200c496ff17a67a951e34da3150ba72ca801f"
2016-10-21 23:55:00 +03:00
}
,{
"testCaseDescription": "ruby-interpolation-delete-replacement-test",
"expectedResult": {
"changes": {
"symbol.rb": [
{
"span": {
"delete": {
"start": [
1,
9
],
"end": [
1,
12
]
}
},
"summary": "Deleted the 'foo' identifier"
},
{
"span": {
"delete": {
"start": [
2,
8
],
"end": [
2,
11
]
}
},
"summary": "Deleted the 'foo' identifier"
},
{
"span": {
"delete": {
"start": [
3,
9
],
"end": [
3,
12
]
}
},
"summary": "Deleted the 'bar' identifier"
},
{
"span": {
"delete": {
"start": [
4,
8
],
"end": [
4,
11
]
}
},
"summary": "Deleted the 'bar' identifier"
},
{
"span": {
"insert": {
"start": [
3,
9
],
"end": [
3,
12
]
}
},
"summary": "Added the 'foo' identifier"
},
{
"span": {
"insert": {
"start": [
4,
8
],
"end": [
4,
11
]
}
},
"summary": "Added the 'foo' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"symbol.rb"
],
2016-10-27 01:44:53 +03:00
"sha1": "cfe200c496ff17a67a951e34da3150ba72ca801f",
2016-10-21 23:55:00 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-27 01:44:53 +03:00
"sha2": "1119e4889a631ba485a71f2e636baf3ad3587fe4"
2016-10-21 23:55:00 +03:00
}
,{
"testCaseDescription": "ruby-interpolation-delete-test",
"expectedResult": {
"changes": {
"symbol.rb": [
{
"span": {
"delete": {
"start": [
1,
9
],
"end": [
1,
12
]
}
},
"summary": "Deleted the 'bar' identifier"
},
{
"span": {
"delete": {
"start": [
2,
8
],
"end": [
2,
11
]
}
},
"summary": "Deleted the 'bar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"symbol.rb"
],
2016-10-27 01:44:53 +03:00
"sha1": "1119e4889a631ba485a71f2e636baf3ad3587fe4",
2016-10-21 23:55:00 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-27 01:44:53 +03:00
"sha2": "21c9f665baa3942d1fc945076cb6bcbd94276734"
2016-10-21 23:55:00 +03:00
}
,{
"testCaseDescription": "ruby-interpolation-delete-rest-test",
"expectedResult": {
"changes": {
"symbol.rb": [
{
"span": {
"delete": {
"start": [
1,
9
],
"end": [
1,
12
]
}
},
"summary": "Deleted the 'foo' identifier"
},
{
"span": {
"delete": {
"start": [
2,
8
],
"end": [
2,
11
]
}
},
"summary": "Deleted the 'foo' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"symbol.rb"
],
2016-10-27 01:44:53 +03:00
"sha1": "21c9f665baa3942d1fc945076cb6bcbd94276734",
2016-10-21 23:55:00 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-27 01:44:53 +03:00
"sha2": "3f84df54eecb70f499b0338ad35653ef0d91710c"
2016-10-21 23:55:00 +03:00
}]