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 12:47:27 -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": "a743c4b223b6ffd7301dc161b55d53e5ad1b0f74",
"gitDir": "test/corpus/repos/ruby",
"sha2": "21bde0f043f8423b28cf75c2bce01e480068a05f"
}
,{
"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": "21bde0f043f8423b28cf75c2bce01e480068a05f",
"gitDir": "test/corpus/repos/ruby",
"sha2": "54d0b0a4ecdd499c59e0cf5a8f26959ca32ca7b0"
}
,{
"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": "54d0b0a4ecdd499c59e0cf5a8f26959ca32ca7b0",
"gitDir": "test/corpus/repos/ruby",
"sha2": "d9e871e361ecc8b4cdeb25292d4c62a2b5f7f411"
}
,{
"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": "d9e871e361ecc8b4cdeb25292d4c62a2b5f7f411",
"gitDir": "test/corpus/repos/ruby",
"sha2": "db75e264343fb4b1df53cd30a17b800a4b5c9e0b"
}
,{
"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": "db75e264343fb4b1df53cd30a17b800a4b5c9e0b",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2a237e64e57e3c1398b0a8fdca1479fb7bc50d22"
}
,{
"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": "2a237e64e57e3c1398b0a8fdca1479fb7bc50d22",
"gitDir": "test/corpus/repos/ruby",
"sha2": "23bcb4645b69dbe294dd6af5c73ead8c80dc04a9"
}
,{
"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": "23bcb4645b69dbe294dd6af5c73ead8c80dc04a9",
"gitDir": "test/corpus/repos/ruby",
"sha2": "1f219378bf8cfb3412baa3efdbaa88cfe5b2f716"
}]