1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00
semantic/test/corpus/diff-summaries/ruby/interpolation.json
2016-10-26 14:32:08 -07:00

461 lines
14 KiB
JSON

[{
"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"
],
"sha1": "efd60ff36016a1c7f33044bec774ddaa78b40ed1",
"gitDir": "test/corpus/repos/ruby",
"sha2": "4361a773e97f9e284ff4f4972595892b76a9c32f"
}
,{
"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"
],
"sha1": "4361a773e97f9e284ff4f4972595892b76a9c32f",
"gitDir": "test/corpus/repos/ruby",
"sha2": "ad5610e42cbe1c16be32d7b023eac82e2b34714d"
}
,{
"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"
],
"sha1": "ad5610e42cbe1c16be32d7b023eac82e2b34714d",
"gitDir": "test/corpus/repos/ruby",
"sha2": "c1715c7dd426e83a529fc615454d9172a252e589"
}
,{
"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"
],
"sha1": "c1715c7dd426e83a529fc615454d9172a252e589",
"gitDir": "test/corpus/repos/ruby",
"sha2": "d03c9d907efb5bd6ffef58c50e5555a11c7defea"
}
,{
"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"
],
"sha1": "d03c9d907efb5bd6ffef58c50e5555a11c7defea",
"gitDir": "test/corpus/repos/ruby",
"sha2": "40e4e19e7029d34c8571820cd403f6da40cc8360"
}
,{
"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"
],
"sha1": "40e4e19e7029d34c8571820cd403f6da40cc8360",
"gitDir": "test/corpus/repos/ruby",
"sha2": "09291e9bf175a8d84d15bfa1c54bf59ae00c0095"
}
,{
"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"
],
"sha1": "09291e9bf175a8d84d15bfa1c54bf59ae00c0095",
"gitDir": "test/corpus/repos/ruby",
"sha2": "9f6fb8186a4fb33c4f429f3c9a3c2422c88cae58"
}]