mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
437 lines
15 KiB
JSON
437 lines
15 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-delimiter-insert-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {
|
|
"delimiter.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '%q=a=\n%q<a<b>c>\n%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n' at line 1, column 1 - line 7, column 1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"filePaths": [
|
|
"delimiter.rb"
|
|
],
|
|
"sha1": "7339f692ac4448fdbb9a0d8396faaec7ad69c22d",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "4ccb7685b3ef0525241fc609922e075870e94111"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-delimiter-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delimiter.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
19,
|
|
1
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '%q=a=\n%q<a<b>c>\n%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n' at line 1, column 1 - line 7, column 1 with the '%q!b!\n%q{d{e}f}\n%!b!\n%Q!b!\n%{d{e}f}\n%Q{d{e}f}\n%q=a=\n%q<a<b>c>\n%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n%q=a=\n%q<a<b>c>\n%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n' at line 1, column 1 - line 19, column 1"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delimiter.rb"
|
|
],
|
|
"sha1": "4ccb7685b3ef0525241fc609922e075870e94111",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "ddde7ddf2f08f7272f0b1c568153148bb746d32d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-delimiter-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delimiter.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
19,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
19,
|
|
1
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '%q!b!\n%q{d{e}f}\n%!b!\n%Q!b!\n%{d{e}f}\n%Q{d{e}f}\n%q=a=\n%q<a<b>c>\n%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n%q=a=\n%q<a<b>c>\n%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n' at line 1, column 1 - line 19, column 1 with the '%q=a=\n%q<a<b>c>\n%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n%q=a=\n%q<a<b>c>\n%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n%q=a=\n%q<a<b>c>\n%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n' at line 1, column 1 - line 19, column 1"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delimiter.rb"
|
|
],
|
|
"sha1": "ddde7ddf2f08f7272f0b1c568153148bb746d32d",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "8e02a86fe4d069745c5cdadc589093a13887e3b2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-delimiter-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delimiter.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
19,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
19,
|
|
1
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '%q=a=\n%q<a<b>c>\n%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n%q=a=\n%q<a<b>c>\n%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n%q=a=\n%q<a<b>c>\n%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n' at line 1, column 1 - line 19, column 1 with the '%q!b!\n%q{d{e}f}\n%!b!\n%Q!b!\n%{d{e}f}\n%Q{d{e}f}\n%q=a=\n%q<a<b>c>\n%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n%q=a=\n%q<a<b>c>\n%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n' at line 1, column 1 - line 19, column 1"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delimiter.rb"
|
|
],
|
|
"sha1": "8e02a86fe4d069745c5cdadc589093a13887e3b2",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "21affb5a86156afee74fc2c804f9d7e4b4ea4d7b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-delimiter-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delimiter.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
19,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '%q!b!\n%q{d{e}f}\n%!b!\n%Q!b!\n%{d{e}f}\n%Q{d{e}f}\n%q=a=\n%q<a<b>c>\n%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n%q=a=\n%q<a<b>c>\n%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n' at line 1, column 1 - line 19, column 1 with the '%q=' at line 1, column 1 - line 1, column 4"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delimiter.rb"
|
|
],
|
|
"sha1": "21affb5a86156afee74fc2c804f9d7e4b4ea4d7b",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "cf5572e4a62114cad84a5c36db8c7437cba38c64"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-delimiter-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delimiter.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
4
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b(…)' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
3
|
|
],
|
|
"end": [
|
|
5,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b(…)' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
4
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %q<a<b>c> string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {
|
|
"delimiter.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '%q' at line 1, column 1 - line 1, column 3"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '%' at line 3, column 1 - line 3, column 2"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '%q=' at line 1, column 1 - line 1, column 4"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '%=a=\n%Q=a=\n%<a<b>c>\n%Q<a<b>c>\n%q!b!\n%q{d{e}f}\n%!b!\n%Q!b!\n%{d{e}f}\n' at line 3, column 1 - line 12, column 1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"filePaths": [
|
|
"delimiter.rb"
|
|
],
|
|
"sha1": "cf5572e4a62114cad84a5c36db8c7437cba38c64",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "cf7fb4ce922d27cb5752f6238382afd8f85e4d20"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-delimiter-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delimiter.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
4
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b(…)' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
3
|
|
],
|
|
"end": [
|
|
5,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b(…)' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %Q{d{e}f} string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {
|
|
"delimiter.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '%q' at line 1, column 1 - line 1, column 3"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '%' at line 3, column 1 - line 3, column 2"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"filePaths": [
|
|
"delimiter.rb"
|
|
],
|
|
"sha1": "cf7fb4ce922d27cb5752f6238382afd8f85e4d20",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "0468cfe94e73c0817aad8cb9b49ad1afaff3ef95"
|
|
}]
|