mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
293 lines
8.5 KiB
JSON
293 lines
8.5 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-and-or-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"and-or.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo and bar' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"and-or.rb"
|
|
],
|
|
"sha1": "a139200bcea43bdee7d761f7b2ddf17e40dff02e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "da200b39f13d3585d3a770bfe84b51d373d1cc06"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-and-or-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"and-or.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo or bar' boolean operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a or b and c' boolean operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo and bar' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"and-or.rb"
|
|
],
|
|
"sha1": "da200b39f13d3585d3a770bfe84b51d373d1cc06",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "bf3cd80d695f922a2ac2dcdf6498cb684b1eca03"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-and-or-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"and-or.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a or b and c' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"and-or.rb"
|
|
],
|
|
"sha1": "bf3cd80d695f922a2ac2dcdf6498cb684b1eca03",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "e0667a4b55bf4641a8da890c04860b36839bf089"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-and-or-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"and-or.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a or b and c' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"and-or.rb"
|
|
],
|
|
"sha1": "e0667a4b55bf4641a8da890c04860b36839bf089",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "dad294478fbb3d3fd147adc65916e147d894367a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-and-or-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"and-or.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo or bar' boolean operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a or b and c' boolean operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a or b and c' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"and-or.rb"
|
|
],
|
|
"sha1": "dad294478fbb3d3fd147adc65916e147d894367a",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "4cfafcbf435f2ddc3703d3e71cd74afd521e769d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-and-or-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"and-or.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo and bar' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"and-or.rb"
|
|
],
|
|
"sha1": "4cfafcbf435f2ddc3703d3e71cd74afd521e769d",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "d8bc3cdcb38ecc8103058b8322a275c516fa355d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-and-or-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"and-or.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo or bar' boolean operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a or b and c' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"and-or.rb"
|
|
],
|
|
"sha1": "d8bc3cdcb38ecc8103058b8322a275c516fa355d",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "6f989839b500a043b9a4710f8d13e2a4601f4c62"
|
|
}]
|