1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/ruby/conditional-assignment.json
2016-11-03 14:27:47 -07:00

287 lines
8.7 KiB
JSON

[{
"testCaseDescription": "ruby-conditional-assignment-insert-test",
"expectedResult": {
"changes": {
"conditional-assignment.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Added the 'x' conditional assignment"
}
]
},
"errors": {}
},
"filePaths": [
"conditional-assignment.rb"
],
"sha1": "ec81c632ff6bbf19d755cb08b9172568e8d986a8",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3824a27bd57839741e43e14dd1499e688167f711"
}
,{
"testCaseDescription": "ruby-conditional-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"conditional-assignment.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Added the 'x' conditional assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'x' conditional assignment"
}
]
},
"errors": {}
},
"filePaths": [
"conditional-assignment.rb"
],
"sha1": "3824a27bd57839741e43e14dd1499e688167f711",
"gitDir": "test/corpus/repos/ruby",
"sha2": "43f21e9a3b46f49e3ecd5d2a04cef3fb568a41d9"
}
,{
"testCaseDescription": "ruby-conditional-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"conditional-assignment.rb": [
{
"span": {
"replace": [
{
"start": [
1,
7
],
"end": [
1,
8
]
},
{
"start": [
1,
7
],
"end": [
1,
8
]
}
]
},
"summary": "Replaced '7' with '5'"
}
]
},
"errors": {}
},
"filePaths": [
"conditional-assignment.rb"
],
"sha1": "43f21e9a3b46f49e3ecd5d2a04cef3fb568a41d9",
"gitDir": "test/corpus/repos/ruby",
"sha2": "9ea2a0952358e530a2c3485dbcdf594d4c8b9b46"
}
,{
"testCaseDescription": "ruby-conditional-assignment-replacement-test",
"expectedResult": {
"changes": {
"conditional-assignment.rb": [
{
"span": {
"replace": [
{
"start": [
1,
7
],
"end": [
1,
8
]
},
{
"start": [
1,
7
],
"end": [
1,
8
]
}
]
},
"summary": "Replaced '5' with '7'"
}
]
},
"errors": {}
},
"filePaths": [
"conditional-assignment.rb"
],
"sha1": "9ea2a0952358e530a2c3485dbcdf594d4c8b9b46",
"gitDir": "test/corpus/repos/ruby",
"sha2": "fd2e04b36cc4eefe0fe0e9a732cc3436bc59151a"
}
,{
"testCaseDescription": "ruby-conditional-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"conditional-assignment.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'x' conditional assignment"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Deleted the 'x' conditional assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'x' conditional assignment"
}
]
},
"errors": {}
},
"filePaths": [
"conditional-assignment.rb"
],
"sha1": "fd2e04b36cc4eefe0fe0e9a732cc3436bc59151a",
"gitDir": "test/corpus/repos/ruby",
"sha2": "45675827a5092314f1d3b16cf8c0037f87b1e8d3"
}
,{
"testCaseDescription": "ruby-conditional-assignment-delete-test",
"expectedResult": {
"changes": {
"conditional-assignment.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'x' conditional assignment"
}
]
},
"errors": {}
},
"filePaths": [
"conditional-assignment.rb"
],
"sha1": "45675827a5092314f1d3b16cf8c0037f87b1e8d3",
"gitDir": "test/corpus/repos/ruby",
"sha2": "46217cbc41350a24b7cc612b931d9c99ea630d63"
}
,{
"testCaseDescription": "ruby-conditional-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"conditional-assignment.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'x' conditional assignment"
}
]
},
"errors": {}
},
"filePaths": [
"conditional-assignment.rb"
],
"sha1": "46217cbc41350a24b7cc612b931d9c99ea630d63",
"gitDir": "test/corpus/repos/ruby",
"sha2": "f7f23ef672ba5a4d30d8f13d7af56927e263a7b5"
}]