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

461 lines
14 KiB
JSON

[{
"testCaseDescription": "ruby-string-insert-test",
"expectedResult": {
"changes": {
"string.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
3
]
}
},
"summary": "Added the '' string"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
17
]
}
},
"summary": "Added the 'foo with \"bar\"' string"
}
]
},
"errors": {}
},
"filePaths": [
"string.rb"
],
"sha1": "3df9fe161af95fb18d2e536a42633790087e6839",
"gitDir": "test/corpus/repos/ruby",
"sha2": "64b1bfc3d978e66c5e0c1bd633cf3e750680f362"
}
,{
"testCaseDescription": "ruby-string-replacement-insert-test",
"expectedResult": {
"changes": {
"string.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
3
]
}
},
"summary": "Added the \"\" string"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
17
]
}
},
"summary": "Added the \"bar with 'foo'\" string"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
3
]
}
},
"summary": "Added the '' string"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
17
]
}
},
"summary": "Added the 'foo with \"bar\"' string"
}
]
},
"errors": {}
},
"filePaths": [
"string.rb"
],
"sha1": "64b1bfc3d978e66c5e0c1bd633cf3e750680f362",
"gitDir": "test/corpus/repos/ruby",
"sha2": "01818fb4fe3596ff1e394c88db77517fb2fc417d"
}
,{
"testCaseDescription": "ruby-string-delete-insert-test",
"expectedResult": {
"changes": {
"string.rb": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
3
]
},
{
"start": [
1,
1
],
"end": [
1,
3
]
}
]
},
"summary": "Replaced the \"\" string with the '' string"
},
{
"span": {
"replace": [
{
"start": [
2,
1
],
"end": [
2,
17
]
},
{
"start": [
2,
1
],
"end": [
2,
17
]
}
]
},
"summary": "Replaced the \"bar with 'foo'\" string with the 'foo with \"bar\"' string"
}
]
},
"errors": {}
},
"filePaths": [
"string.rb"
],
"sha1": "01818fb4fe3596ff1e394c88db77517fb2fc417d",
"gitDir": "test/corpus/repos/ruby",
"sha2": "dbedc8f241601c3a1039daa128ada4db169c09ec"
}
,{
"testCaseDescription": "ruby-string-replacement-test",
"expectedResult": {
"changes": {
"string.rb": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
3
]
},
{
"start": [
1,
1
],
"end": [
1,
3
]
}
]
},
"summary": "Replaced the '' string with the \"\" string"
},
{
"span": {
"replace": [
{
"start": [
2,
1
],
"end": [
2,
17
]
},
{
"start": [
2,
1
],
"end": [
2,
17
]
}
]
},
"summary": "Replaced the 'foo with \"bar\"' string with the \"bar with 'foo'\" string"
}
]
},
"errors": {}
},
"filePaths": [
"string.rb"
],
"sha1": "dbedc8f241601c3a1039daa128ada4db169c09ec",
"gitDir": "test/corpus/repos/ruby",
"sha2": "def7af42a198238f777e74d7feee1906146d43da"
}
,{
"testCaseDescription": "ruby-string-delete-replacement-test",
"expectedResult": {
"changes": {
"string.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
3
]
}
},
"summary": "Deleted the \"\" string"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
17
]
}
},
"summary": "Deleted the \"bar with 'foo'\" string"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
3
]
}
},
"summary": "Deleted the '' string"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
17
]
}
},
"summary": "Deleted the 'foo with \"bar\"' string"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
3
]
}
},
"summary": "Added the \"\" string"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
17
]
}
},
"summary": "Added the \"bar with 'foo'\" string"
}
]
},
"errors": {}
},
"filePaths": [
"string.rb"
],
"sha1": "def7af42a198238f777e74d7feee1906146d43da",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3ba5b093555d1498df34aeabf03dda83f991f236"
}
,{
"testCaseDescription": "ruby-string-delete-test",
"expectedResult": {
"changes": {
"string.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
3
]
}
},
"summary": "Deleted the '' string"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
17
]
}
},
"summary": "Deleted the 'foo with \"bar\"' string"
}
]
},
"errors": {}
},
"filePaths": [
"string.rb"
],
"sha1": "3ba5b093555d1498df34aeabf03dda83f991f236",
"gitDir": "test/corpus/repos/ruby",
"sha2": "61727e941f55f531e800216e93f0b69432022753"
}
,{
"testCaseDescription": "ruby-string-delete-rest-test",
"expectedResult": {
"changes": {
"string.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
3
]
}
},
"summary": "Deleted the \"\" string"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
17
]
}
},
"summary": "Deleted the \"bar with 'foo'\" string"
}
]
},
"errors": {}
},
"filePaths": [
"string.rb"
],
"sha1": "61727e941f55f531e800216e93f0b69432022753",
"gitDir": "test/corpus/repos/ruby",
"sha2": "bb2c91ee0ba78719f2179361799d3f21aa34c365"
}]