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/and-or.json
2016-10-31 13:14:58 -07:00

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": "aa12cbff5e3f6d88c32ed109e1371f4384c2985a",
"gitDir": "test/corpus/repos/ruby",
"sha2": "77595190f0c1b73f03fc41150c44b1073c53ce3c"
}
,{
"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": "77595190f0c1b73f03fc41150c44b1073c53ce3c",
"gitDir": "test/corpus/repos/ruby",
"sha2": "5922c8d174103a692b9d12bc6ba5cb30f9a78393"
}
,{
"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": "5922c8d174103a692b9d12bc6ba5cb30f9a78393",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2fef4051757c11ed86225599425773bda0dd59d2"
}
,{
"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": "2fef4051757c11ed86225599425773bda0dd59d2",
"gitDir": "test/corpus/repos/ruby",
"sha2": "666ef62f60c45c25272832c02a2af923e5340881"
}
,{
"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": "666ef62f60c45c25272832c02a2af923e5340881",
"gitDir": "test/corpus/repos/ruby",
"sha2": "965afbfba03dbb63d06ac883dd4ac17b9dbfefbb"
}
,{
"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": "965afbfba03dbb63d06ac883dd4ac17b9dbfefbb",
"gitDir": "test/corpus/repos/ruby",
"sha2": "d912a5c28c2a8568d682adcdee9daf11c3684eaa"
}
,{
"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": "d912a5c28c2a8568d682adcdee9daf11c3684eaa",
"gitDir": "test/corpus/repos/ruby",
"sha2": "993f259dc2e7d837c15a3be86156ca09e0a9fc83"
}]