1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/ruby/and-or.json

293 lines
8.5 KiB
JSON
Raw Normal View History

2016-10-27 01:22:59 +03:00
[{
"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": "fc4744555871b82d1296339fcb5ead8cf4d8fbf1",
"gitDir": "test/corpus/repos/ruby",
"sha2": "513818970ec44a3169a61ba9f01c0da6a74ee003"
}
,{
"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": "513818970ec44a3169a61ba9f01c0da6a74ee003",
"gitDir": "test/corpus/repos/ruby",
"sha2": "48051076721e9cb8134a5af90858c67d36444d32"
}
,{
"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": "48051076721e9cb8134a5af90858c67d36444d32",
"gitDir": "test/corpus/repos/ruby",
"sha2": "64a1ba9ff7197d53d2129c26a82be147b86016f7"
}
,{
"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": "64a1ba9ff7197d53d2129c26a82be147b86016f7",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2013c2c7b9c4b9ad0e19b5bd0939b67ce1677d65"
}
,{
"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": "2013c2c7b9c4b9ad0e19b5bd0939b67ce1677d65",
"gitDir": "test/corpus/repos/ruby",
"sha2": "29d4751dee553262a36f92d0a76915367ff9c3d0"
}
,{
"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": "29d4751dee553262a36f92d0a76915367ff9c3d0",
"gitDir": "test/corpus/repos/ruby",
"sha2": "6f3429c926707bf8f1bbafbf7ba8062bc84bfb6c"
}
,{
"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": "6f3429c926707bf8f1bbafbf7ba8062bc84bfb6c",
"gitDir": "test/corpus/repos/ruby",
"sha2": "63ef22cf3a206dad8497392076a0088be7b36ab9"
}]