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/case-statement.json
2016-10-31 13:21:58 -07:00

263 lines
7.6 KiB
JSON

[{
"testCaseDescription": "ruby-case-statement-insert-test",
"expectedResult": {
"changes": {
"case-statement.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Added the 'foo' switch statement"
}
]
},
"errors": {}
},
"filePaths": [
"case-statement.rb"
],
"sha1": "9b332f981a2fa42849e4ddc48afca9424480312d",
"gitDir": "test/corpus/repos/ruby",
"sha2": "91f8cf75d9c34e5b1275898ae984a110f3b6381b"
}
,{
"testCaseDescription": "ruby-case-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"case-statement.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
4,
4
]
}
},
"summary": "Added the 'foo' switch statement"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
7,
4
]
}
},
"summary": "Added the 'foo' switch statement"
}
]
},
"errors": {}
},
"filePaths": [
"case-statement.rb"
],
"sha1": "91f8cf75d9c34e5b1275898ae984a110f3b6381b",
"gitDir": "test/corpus/repos/ruby",
"sha2": "d7029d7b9e07992515a23b2410f68aa645c7ac04"
}
,{
"testCaseDescription": "ruby-case-statement-delete-insert-test",
"expectedResult": {
"changes": {
"case-statement.rb": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Deleted the 'else' expression statements"
}
]
},
"errors": {}
},
"filePaths": [
"case-statement.rb"
],
"sha1": "d7029d7b9e07992515a23b2410f68aa645c7ac04",
"gitDir": "test/corpus/repos/ruby",
"sha2": "6b2a37829199cf77bcbd27c3b0051cc0ea42e419"
}
,{
"testCaseDescription": "ruby-case-statement-replacement-test",
"expectedResult": {
"changes": {
"case-statement.rb": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Added the 'else' expression statements"
}
]
},
"errors": {}
},
"filePaths": [
"case-statement.rb"
],
"sha1": "6b2a37829199cf77bcbd27c3b0051cc0ea42e419",
"gitDir": "test/corpus/repos/ruby",
"sha2": "6e0d7c355b6c2c3d21ea2c6ba4603039e4a80f38"
}
,{
"testCaseDescription": "ruby-case-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"case-statement.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
4,
4
]
}
},
"summary": "Deleted the 'foo' switch statement"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
7,
4
]
}
},
"summary": "Deleted the 'foo' switch statement"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
7,
4
]
}
},
"summary": "Added the 'foo' switch statement"
}
]
},
"errors": {}
},
"filePaths": [
"case-statement.rb"
],
"sha1": "6e0d7c355b6c2c3d21ea2c6ba4603039e4a80f38",
"gitDir": "test/corpus/repos/ruby",
"sha2": "62110252f65a05ba2d9acf0d52d78e00afecef6c"
}
,{
"testCaseDescription": "ruby-case-statement-delete-test",
"expectedResult": {
"changes": {
"case-statement.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted the 'foo' switch statement"
}
]
},
"errors": {}
},
"filePaths": [
"case-statement.rb"
],
"sha1": "62110252f65a05ba2d9acf0d52d78e00afecef6c",
"gitDir": "test/corpus/repos/ruby",
"sha2": "6abb2ef55c040d5c19e14573d227d3ad04f387c0"
}
,{
"testCaseDescription": "ruby-case-statement-delete-rest-test",
"expectedResult": {
"changes": {
"case-statement.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
4,
4
]
}
},
"summary": "Deleted the 'foo' switch statement"
}
]
},
"errors": {}
},
"filePaths": [
"case-statement.rb"
],
"sha1": "6abb2ef55c040d5c19e14573d227d3ad04f387c0",
"gitDir": "test/corpus/repos/ruby",
"sha2": "637106220ab216a08eb28519ce44928d8e58e145"
}]