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/string.json
2016-10-27 09:24:28 -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": "87e378b8da21a23e020a5790e1aa260c7a5e6d64",
"gitDir": "test/corpus/repos/ruby",
"sha2": "a0a77d12789ba62b55879b9d559e0ad7d7999b5c"
}
,{
"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": "a0a77d12789ba62b55879b9d559e0ad7d7999b5c",
"gitDir": "test/corpus/repos/ruby",
"sha2": "9ec9c02019c356e2050a36cdcb535877ab299196"
}
,{
"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": "9ec9c02019c356e2050a36cdcb535877ab299196",
"gitDir": "test/corpus/repos/ruby",
"sha2": "72bb3fe246cb1c1212026b40993b3ed7cd9f8937"
}
,{
"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": "72bb3fe246cb1c1212026b40993b3ed7cd9f8937",
"gitDir": "test/corpus/repos/ruby",
"sha2": "faccf5d4db4380de30ffc96540fbadb39bf7b1d7"
}
,{
"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": "faccf5d4db4380de30ffc96540fbadb39bf7b1d7",
"gitDir": "test/corpus/repos/ruby",
"sha2": "621c09961eec39be8cb0bf1327b8d21ba86765dd"
}
,{
"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": "621c09961eec39be8cb0bf1327b8d21ba86765dd",
"gitDir": "test/corpus/repos/ruby",
"sha2": "b5ae36adbcb9a278818f5a9576edfafe438673a9"
}
,{
"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": "b5ae36adbcb9a278818f5a9576edfafe438673a9",
"gitDir": "test/corpus/repos/ruby",
"sha2": "c4feb251dc42870640b08c70b514d318cfe781bd"
}]