1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/ruby/delimiter.json
2016-10-24 10:43:31 -07:00

1187 lines
37 KiB
JSON

[{
"testCaseDescription": "ruby-delimiter-insert-test",
"expectedResult": {
"changes": {
"delimiter.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the %q=a= string"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Added the %q<a<b>c> string"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Added the %=a= string"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added the %Q=a= string"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Added the %<a<b>c> string"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Added the %Q<a<b>c> string"
}
]
},
"errors": {}
},
"filePaths": [
"delimiter.rb"
],
"sha1": "65b1998924910b203e59bb9663e9fbdb64bd07a7",
"gitDir": "test/corpus/repos/ruby",
"sha2": "a1b961114de21a7337924a6979ee9fe7af290a3c"
}
,{
"testCaseDescription": "ruby-delimiter-replacement-insert-test",
"expectedResult": {
"changes": {
"delimiter.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the %q!b! string"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Added the %q{d{e}f} string"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Added the %!b! string"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added the %Q!b! string"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Added the %{d{e}f} string"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Added the %Q{d{e}f} string"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
6
]
}
},
"summary": "Added the %q=a= string"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
10
]
}
},
"summary": "Added the %q<a<b>c> string"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
5
]
}
},
"summary": "Added the %=a= string"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
6
]
}
},
"summary": "Added the %Q=a= string"
},
{
"span": {
"insert": {
"start": [
11,
1
],
"end": [
11,
9
]
}
},
"summary": "Added the %<a<b>c> string"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
12,
10
]
}
},
"summary": "Added the %Q<a<b>c> string"
}
]
},
"errors": {}
},
"filePaths": [
"delimiter.rb"
],
"sha1": "a1b961114de21a7337924a6979ee9fe7af290a3c",
"gitDir": "test/corpus/repos/ruby",
"sha2": "07cbcb8a6e450962e58d155ba4839c8edce072fa"
}
,{
"testCaseDescription": "ruby-delimiter-delete-insert-test",
"expectedResult": {
"changes": {
"delimiter.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the %q=a= string"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Added the %q<a<b>c> string"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Added the %=a= string"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added the %Q=a= string"
},
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
6
]
},
{
"start": [
5,
1
],
"end": [
5,
9
]
}
]
},
"summary": "Replaced the %q!b! string with the %<a<b>c> string"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Added the %Q<a<b>c> string"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Deleted the %q{d{e}f} string"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Deleted the %!b! string"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Deleted the %Q!b! string"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the %{d{e}f} string"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Deleted the %Q{d{e}f} string"
}
]
},
"errors": {}
},
"filePaths": [
"delimiter.rb"
],
"sha1": "07cbcb8a6e450962e58d155ba4839c8edce072fa",
"gitDir": "test/corpus/repos/ruby",
"sha2": "f5c5dd989655b97e9e1ff36e154f7fb6ca1b88ec"
}
,{
"testCaseDescription": "ruby-delimiter-replacement-test",
"expectedResult": {
"changes": {
"delimiter.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the %q!b! string"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Added the %q{d{e}f} string"
},
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
6
]
},
{
"start": [
3,
1
],
"end": [
3,
5
]
}
]
},
"summary": "Replaced the %q=a= string with the %!b! string"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added the %Q!b! string"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Added the %{d{e}f} string"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Added the %Q{d{e}f} string"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Deleted the %q<a<b>c> string"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Deleted the %=a= string"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Deleted the %Q=a= string"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the %<a<b>c> string"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Deleted the %Q<a<b>c> string"
}
]
},
"errors": {}
},
"filePaths": [
"delimiter.rb"
],
"sha1": "f5c5dd989655b97e9e1ff36e154f7fb6ca1b88ec",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2105b5e2f2c0f8ff58175c6178df8d192366b97f"
}
,{
"testCaseDescription": "ruby-delimiter-delete-replacement-test",
"expectedResult": {
"changes": {
"delimiter.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the %q!b! string"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Deleted the %q{d{e}f} string"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Deleted the %!b! string"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Deleted the %Q!b! string"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the %{d{e}f} string"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Deleted the %Q{d{e}f} string"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
6
]
}
},
"summary": "Deleted the %q=a= string"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
10
]
}
},
"summary": "Deleted the %q<a<b>c> string"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
5
]
}
},
"summary": "Deleted the %=a= string"
},
{
"span": {
"delete": {
"start": [
10,
1
],
"end": [
10,
6
]
}
},
"summary": "Deleted the %Q=a= string"
},
{
"span": {
"delete": {
"start": [
11,
1
],
"end": [
11,
9
]
}
},
"summary": "Deleted the %<a<b>c> string"
},
{
"span": {
"delete": {
"start": [
12,
1
],
"end": [
12,
10
]
}
},
"summary": "Deleted the %Q<a<b>c> string"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
6
]
}
},
"summary": "Added the %q!b! string"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
10
]
}
},
"summary": "Added the %q{d{e}f} string"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
5
]
}
},
"summary": "Added the %!b! string"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
6
]
}
},
"summary": "Added the %Q!b! string"
},
{
"span": {
"insert": {
"start": [
11,
1
],
"end": [
11,
9
]
}
},
"summary": "Added the %{d{e}f} string"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
12,
10
]
}
},
"summary": "Added the %Q{d{e}f} string"
}
]
},
"errors": {}
},
"filePaths": [
"delimiter.rb"
],
"sha1": "2105b5e2f2c0f8ff58175c6178df8d192366b97f",
"gitDir": "test/corpus/repos/ruby",
"sha2": "89090057d9136651d6f2a474d6eda581270f9bad"
}
,{
"testCaseDescription": "ruby-delimiter-delete-test",
"expectedResult": {
"changes": {
"delimiter.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the %q=a= string"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Deleted the %q<a<b>c> string"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Deleted the %=a= string"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Deleted the %Q=a= string"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the %<a<b>c> string"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Deleted the %Q<a<b>c> string"
}
]
},
"errors": {}
},
"filePaths": [
"delimiter.rb"
],
"sha1": "89090057d9136651d6f2a474d6eda581270f9bad",
"gitDir": "test/corpus/repos/ruby",
"sha2": "5c7cc2bb057dbb638da2eca562da57e5ecc5553a"
}
,{
"testCaseDescription": "ruby-delimiter-delete-rest-test",
"expectedResult": {
"changes": {
"delimiter.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the %q!b! string"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Deleted the %q{d{e}f} string"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Deleted the %!b! string"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Deleted the %Q!b! string"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the %{d{e}f} string"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Deleted the %Q{d{e}f} string"
}
]
},
"errors": {}
},
"filePaths": [
"delimiter.rb"
],
"sha1": "5c7cc2bb057dbb638da2eca562da57e5ecc5553a",
"gitDir": "test/corpus/repos/ruby",
"sha2": "9231520dab61adad13f93bc68bf0a5450ad0703b"
}]