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-24 10:43:31 -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": "a208c7d836979adffb778fc18c7575b3e6ce995d",
"gitDir": "test/corpus/repos/ruby",
"sha2": "898179c974ed1e0a84938c1bab440aa17348bfb1"
}
,{
"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": "898179c974ed1e0a84938c1bab440aa17348bfb1",
"gitDir": "test/corpus/repos/ruby",
"sha2": "30cb318a84e5b96a35377daee8844ae17bc9ce1d"
}
,{
"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": "30cb318a84e5b96a35377daee8844ae17bc9ce1d",
"gitDir": "test/corpus/repos/ruby",
"sha2": "b1c8ef85cb99877a5ba6a1fcb8eb355cf48c4b73"
}
,{
"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": "b1c8ef85cb99877a5ba6a1fcb8eb355cf48c4b73",
"gitDir": "test/corpus/repos/ruby",
"sha2": "835a40c0d5fb0a892d5407b1df43050cecdd6f4f"
}
,{
"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": "835a40c0d5fb0a892d5407b1df43050cecdd6f4f",
"gitDir": "test/corpus/repos/ruby",
"sha2": "0810c498838e8fd91da68ef2d9517ff2c431804b"
}
,{
"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": "0810c498838e8fd91da68ef2d9517ff2c431804b",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2fc5273101b5b47718f3f9630a8bddea77013094"
}
,{
"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": "2fc5273101b5b47718f3f9630a8bddea77013094",
"gitDir": "test/corpus/repos/ruby",
"sha2": "4121ac47822fd9dbb7d4b39feff1d0d26f1ceec2"
}]