1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00
semantic/test/corpus/diff-summaries/ruby/string.json

461 lines
14 KiB
JSON
Raw Normal View History

[{
"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"
],
2016-10-21 23:55:00 +03:00
"sha1": "3d8c8b2de0e3b628482e4d542ac02b75f104c15e",
"gitDir": "test/corpus/repos/ruby",
2016-10-21 23:55:00 +03:00
"sha2": "c358c44b55c79d8f18ae0ad7b4831d26ccb9f30c"
}
,{
"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"
],
2016-10-21 23:55:00 +03:00
"sha1": "c358c44b55c79d8f18ae0ad7b4831d26ccb9f30c",
"gitDir": "test/corpus/repos/ruby",
2016-10-21 23:55:00 +03:00
"sha2": "291238a947b59cb6a3075247325ec657aa1253c1"
}
,{
"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"
],
2016-10-21 23:55:00 +03:00
"sha1": "291238a947b59cb6a3075247325ec657aa1253c1",
"gitDir": "test/corpus/repos/ruby",
2016-10-21 23:55:00 +03:00
"sha2": "7d8191620f92dace5413948f1447c97f831dd4ab"
}
,{
"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"
],
2016-10-21 23:55:00 +03:00
"sha1": "7d8191620f92dace5413948f1447c97f831dd4ab",
"gitDir": "test/corpus/repos/ruby",
2016-10-21 23:55:00 +03:00
"sha2": "bd9d9481b236c8700915ec4d14a56eb6bc83b1df"
}
,{
"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"
],
2016-10-21 23:55:00 +03:00
"sha1": "bd9d9481b236c8700915ec4d14a56eb6bc83b1df",
"gitDir": "test/corpus/repos/ruby",
2016-10-21 23:55:00 +03:00
"sha2": "b81d316221822581996d121d022403c359c644b7"
}
,{
"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"
],
2016-10-21 23:55:00 +03:00
"sha1": "b81d316221822581996d121d022403c359c644b7",
"gitDir": "test/corpus/repos/ruby",
2016-10-21 23:55:00 +03:00
"sha2": "9c7f7ea5c175b2a73cc6eb4892bb95ad7afb2f9e"
}
,{
"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"
],
2016-10-21 23:55:00 +03:00
"sha1": "9c7f7ea5c175b2a73cc6eb4892bb95ad7afb2f9e",
"gitDir": "test/corpus/repos/ruby",
2016-10-21 23:55:00 +03:00
"sha2": "e2e52515cc32a316dc8b90cffa5feaedd2440b44"
}]