1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00
semantic/test/corpus/diff-summaries/ruby/class.json
2016-10-26 10:27:38 -07:00

227 lines
6.3 KiB
JSON

[{
"testCaseDescription": "ruby-class-insert-test",
"expectedResult": {
"changes": {
"class.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Added the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.rb"
],
"sha1": "34022ada691bc55e900a46f0df216769f09523d4",
"gitDir": "test/corpus/repos/ruby",
"sha2": "0b4e2255b668296e258445b6e7540215a07012f5"
}
,{
"testCaseDescription": "ruby-class-replacement-insert-test",
"expectedResult": {
"changes": {
"class.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Added the 'Foo' class"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
6,
4
]
}
},
"summary": "Added the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.rb"
],
"sha1": "0b4e2255b668296e258445b6e7540215a07012f5",
"gitDir": "test/corpus/repos/ruby",
"sha2": "d30ed0e0d9e0134b8c4511646e7a23870dbefd45"
}
,{
"testCaseDescription": "ruby-class-delete-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"class.rb"
],
"sha1": "d30ed0e0d9e0134b8c4511646e7a23870dbefd45",
"gitDir": "test/corpus/repos/ruby",
"sha2": "e5ce3c9ba5d93a57eac74451222b7d6cd07a3d83"
}
,{
"testCaseDescription": "ruby-class-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"class.rb"
],
"sha1": "e5ce3c9ba5d93a57eac74451222b7d6cd07a3d83",
"gitDir": "test/corpus/repos/ruby",
"sha2": "55f4775dbe671208c32278b43f3e31927b1c7218"
}
,{
"testCaseDescription": "ruby-class-delete-replacement-test",
"expectedResult": {
"changes": {
"class.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted the 'Foo' class"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
6,
4
]
}
},
"summary": "Deleted the 'Foo' class"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
6,
4
]
}
},
"summary": "Added the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.rb"
],
"sha1": "55f4775dbe671208c32278b43f3e31927b1c7218",
"gitDir": "test/corpus/repos/ruby",
"sha2": "0d62a06db07a89173c0067be73bb9c0924658933"
}
,{
"testCaseDescription": "ruby-class-delete-test",
"expectedResult": {
"changes": {
"class.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.rb"
],
"sha1": "0d62a06db07a89173c0067be73bb9c0924658933",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2956a9ddc219628c6ed2a3b339b13d6dff5c18b8"
}
,{
"testCaseDescription": "ruby-class-delete-rest-test",
"expectedResult": {
"changes": {
"class.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.rb"
],
"sha1": "2956a9ddc219628c6ed2a3b339b13d6dff5c18b8",
"gitDir": "test/corpus/repos/ruby",
"sha2": "f8910c25faf46e769f70c04b569b25342713e245"
}]