mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
317 lines
9.4 KiB
JSON
317 lines
9.4 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-regex-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"regex.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '/^(foo|bar[^_])$/i' regex"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.rb"
|
|
],
|
|
"sha1": "993f259dc2e7d837c15a3be86156ca09e0a9fc83",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "9f3fb52df97952240268e80f8cc39abddd315cb4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-regex-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"regex.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '%r/a/' regex"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '%r<a<b>c>' regex"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '/^(foo|bar[^_])$/i' regex"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.rb"
|
|
],
|
|
"sha1": "9f3fb52df97952240268e80f8cc39abddd315cb4",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "63ed2e99abb268a278d7fc6c4ccd07d91b77a3a3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-regex-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"regex.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '%r/a/' regex with the '/^(foo|bar[^_])$/i' regex"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '%r<a<b>c>' regex"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.rb"
|
|
],
|
|
"sha1": "63ed2e99abb268a278d7fc6c4ccd07d91b77a3a3",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "46f46765942c307c347366f1f55df6c5a7f69fc8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-regex-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"regex.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '/^(foo|bar[^_])$/i' regex with the '%r/a/' regex"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '%r<a<b>c>' regex"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.rb"
|
|
],
|
|
"sha1": "46f46765942c307c347366f1f55df6c5a7f69fc8",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "3ae6a1cece9f5e612806fee42c585cbe819848f4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-regex-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"regex.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '/^(foo|bar[^_])$/i' regex"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.rb"
|
|
],
|
|
"sha1": "3ae6a1cece9f5e612806fee42c585cbe819848f4",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "017a71f7fddef5ed789f98a0eb9ee34f0b264078"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-regex-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"regex.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '/^(foo|bar[^_])$/i' regex"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.rb"
|
|
],
|
|
"sha1": "017a71f7fddef5ed789f98a0eb9ee34f0b264078",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "88e5d6e5eadbd8a8ee367ec4d41e0ec8dd740f45"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-regex-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"regex.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '%r/a/' regex"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '%r<a<b>c>' regex"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.rb"
|
|
],
|
|
"sha1": "88e5d6e5eadbd8a8ee367ec4d41e0ec8dd740f45",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "bc13e2672c25ea9622a5b945b0f46f10c3bbc18a"
|
|
}]
|