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/symbol.json
2016-10-26 15:22:59 -07:00

635 lines
20 KiB
JSON

[{
"testCaseDescription": "ruby-symbol-insert-test",
"expectedResult": {
"changes": {
"symbol.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
5
]
}
},
"summary": "Added the ':foo' symbol"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the ':'foo'' symbol"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
7
]
}
},
"summary": "Added the ':\"foo\"' symbol"
}
]
},
"errors": {}
},
"filePaths": [
"symbol.rb"
],
"sha1": "bd896e800ee6dbda52c9887450591c7ad6042f40",
"gitDir": "test/corpus/repos/ruby",
"sha2": "cd7d34a14b956b15c45745889653079e133cba9c"
}
,{
"testCaseDescription": "ruby-symbol-replacement-insert-test",
"expectedResult": {
"changes": {
"symbol.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
5
]
}
},
"summary": "Added the ':bar' symbol"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the ':'bar'' symbol"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
7
]
}
},
"summary": "Added the ':\"bar\"' symbol"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Added the ':foo' symbol"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
7
]
}
},
"summary": "Added the ':'foo'' symbol"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
7
]
}
},
"summary": "Added the ':\"foo\"' symbol"
}
]
},
"errors": {}
},
"filePaths": [
"symbol.rb"
],
"sha1": "cd7d34a14b956b15c45745889653079e133cba9c",
"gitDir": "test/corpus/repos/ruby",
"sha2": "5497e889167a2f3941ed11b54e57ad56b02e5340"
}
,{
"testCaseDescription": "ruby-symbol-delete-insert-test",
"expectedResult": {
"changes": {
"symbol.rb": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
5
]
},
{
"start": [
1,
1
],
"end": [
1,
5
]
}
]
},
"summary": "Replaced the ':bar' symbol with the ':foo' symbol"
},
{
"span": {
"replace": [
{
"start": [
2,
1
],
"end": [
2,
7
]
},
{
"start": [
2,
1
],
"end": [
2,
7
]
}
]
},
"summary": "Replaced the ':'bar'' symbol with the ':'foo'' symbol"
},
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
7
]
},
{
"start": [
3,
1
],
"end": [
3,
7
]
}
]
},
"summary": "Replaced the ':\"bar\"' symbol with the ':\"foo\"' symbol"
}
]
},
"errors": {}
},
"filePaths": [
"symbol.rb"
],
"sha1": "5497e889167a2f3941ed11b54e57ad56b02e5340",
"gitDir": "test/corpus/repos/ruby",
"sha2": "6b33d60d27c5d19ee91ec3f1e1c5e6c384479aa6"
}
,{
"testCaseDescription": "ruby-symbol-replacement-test",
"expectedResult": {
"changes": {
"symbol.rb": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
5
]
},
{
"start": [
1,
1
],
"end": [
1,
5
]
}
]
},
"summary": "Replaced the ':foo' symbol with the ':bar' symbol"
},
{
"span": {
"replace": [
{
"start": [
2,
1
],
"end": [
2,
7
]
},
{
"start": [
2,
1
],
"end": [
2,
7
]
}
]
},
"summary": "Replaced the ':'foo'' symbol with the ':'bar'' symbol"
},
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
7
]
},
{
"start": [
3,
1
],
"end": [
3,
7
]
}
]
},
"summary": "Replaced the ':\"foo\"' symbol with the ':\"bar\"' symbol"
}
]
},
"errors": {}
},
"filePaths": [
"symbol.rb"
],
"sha1": "6b33d60d27c5d19ee91ec3f1e1c5e6c384479aa6",
"gitDir": "test/corpus/repos/ruby",
"sha2": "cac837dd463b8ed49fa17151c77083048aeca470"
}
,{
"testCaseDescription": "ruby-symbol-delete-replacement-test",
"expectedResult": {
"changes": {
"symbol.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
5
]
}
},
"summary": "Deleted the ':bar' symbol"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the ':'bar'' symbol"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
7
]
}
},
"summary": "Deleted the ':\"bar\"' symbol"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Deleted the ':foo' symbol"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
7
]
}
},
"summary": "Deleted the ':'foo'' symbol"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
7
]
}
},
"summary": "Deleted the ':\"foo\"' symbol"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Added the ':bar' symbol"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
7
]
}
},
"summary": "Added the ':'bar'' symbol"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
7
]
}
},
"summary": "Added the ':\"bar\"' symbol"
}
]
},
"errors": {}
},
"filePaths": [
"symbol.rb"
],
"sha1": "cac837dd463b8ed49fa17151c77083048aeca470",
"gitDir": "test/corpus/repos/ruby",
"sha2": "a3fd787d7bb4a97200526be58a4cdbb013d380c7"
}
,{
"testCaseDescription": "ruby-symbol-delete-test",
"expectedResult": {
"changes": {
"symbol.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
5
]
}
},
"summary": "Deleted the ':foo' symbol"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the ':'foo'' symbol"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
7
]
}
},
"summary": "Deleted the ':\"foo\"' symbol"
}
]
},
"errors": {}
},
"filePaths": [
"symbol.rb"
],
"sha1": "a3fd787d7bb4a97200526be58a4cdbb013d380c7",
"gitDir": "test/corpus/repos/ruby",
"sha2": "a7f33996b6a3b6d52c4ef10dcbdcef5193b58dcf"
}
,{
"testCaseDescription": "ruby-symbol-delete-rest-test",
"expectedResult": {
"changes": {
"symbol.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
5
]
}
},
"summary": "Deleted the ':bar' symbol"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the ':'bar'' symbol"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
7
]
}
},
"summary": "Deleted the ':\"bar\"' symbol"
}
]
},
"errors": {}
},
"filePaths": [
"symbol.rb"
],
"sha1": "a7f33996b6a3b6d52c4ef10dcbdcef5193b58dcf",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3df9fe161af95fb18d2e536a42633790087e6839"
}]