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-26 15:44:53 -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": "66926ea3aaf7076c33108d20d879e84cc480fe5c",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3450f18e9021e7625ea5d76c447ac70ed039cd1f"
}
,{
"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": "3450f18e9021e7625ea5d76c447ac70ed039cd1f",
"gitDir": "test/corpus/repos/ruby",
"sha2": "7106c55b166fa5cc706e32965cebd105e776d6c8"
}
,{
"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": "7106c55b166fa5cc706e32965cebd105e776d6c8",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2a1155b356df49843d367558005fbaaf0f559c2b"
}
,{
"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": "2a1155b356df49843d367558005fbaaf0f559c2b",
"gitDir": "test/corpus/repos/ruby",
"sha2": "f58bb57848902f857d695fdfaa51ceb8a25e6fb1"
}
,{
"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": "f58bb57848902f857d695fdfaa51ceb8a25e6fb1",
"gitDir": "test/corpus/repos/ruby",
"sha2": "856453adb8ac0f22d0d83834a61c4b010edffc42"
}
,{
"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": "856453adb8ac0f22d0d83834a61c4b010edffc42",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3841eca596bd6803b558694969ae059a57a2ff27"
}
,{
"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": "3841eca596bd6803b558694969ae059a57a2ff27",
"gitDir": "test/corpus/repos/ruby",
"sha2": "e2e23ab752f4d965ab0297728b4441bca85f6dc4"
}]