1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +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"
],
2016-10-27 01:44:53 +03:00
"sha1": "66926ea3aaf7076c33108d20d879e84cc480fe5c",
2016-10-27 01:22:59 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-27 01:44:53 +03:00
"sha2": "3450f18e9021e7625ea5d76c447ac70ed039cd1f"
2016-10-27 01:22:59 +03:00
}
,{
"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"
],
2016-10-27 01:44:53 +03:00
"sha1": "3450f18e9021e7625ea5d76c447ac70ed039cd1f",
2016-10-27 01:22:59 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-27 01:44:53 +03:00
"sha2": "7106c55b166fa5cc706e32965cebd105e776d6c8"
2016-10-27 01:22:59 +03:00
}
,{
"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"
],
2016-10-27 01:44:53 +03:00
"sha1": "7106c55b166fa5cc706e32965cebd105e776d6c8",
2016-10-27 01:22:59 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-27 01:44:53 +03:00
"sha2": "2a1155b356df49843d367558005fbaaf0f559c2b"
2016-10-27 01:22:59 +03:00
}
,{
"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"
],
2016-10-27 01:44:53 +03:00
"sha1": "2a1155b356df49843d367558005fbaaf0f559c2b",
2016-10-27 01:22:59 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-27 01:44:53 +03:00
"sha2": "f58bb57848902f857d695fdfaa51ceb8a25e6fb1"
2016-10-27 01:22:59 +03:00
}
,{
"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"
],
2016-10-27 01:44:53 +03:00
"sha1": "f58bb57848902f857d695fdfaa51ceb8a25e6fb1",
2016-10-27 01:22:59 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-27 01:44:53 +03:00
"sha2": "856453adb8ac0f22d0d83834a61c4b010edffc42"
2016-10-27 01:22:59 +03:00
}
,{
"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"
],
2016-10-27 01:44:53 +03:00
"sha1": "856453adb8ac0f22d0d83834a61c4b010edffc42",
2016-10-27 01:22:59 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-27 01:44:53 +03:00
"sha2": "3841eca596bd6803b558694969ae059a57a2ff27"
2016-10-27 01:22:59 +03:00
}
,{
"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"
],
2016-10-27 01:44:53 +03:00
"sha1": "3841eca596bd6803b558694969ae059a57a2ff27",
2016-10-27 01:22:59 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-27 01:44:53 +03:00
"sha2": "e2e23ab752f4d965ab0297728b4441bca85f6dc4"
2016-10-27 01:22:59 +03:00
}]