mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
287 lines
8.4 KiB
JSON
287 lines
8.4 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-assignment-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.rb"
|
|
],
|
|
"sha1": "08f7d9b89400d025278ec19db5f7ccf6d6411355",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "d4251f3dbdf3f678b9c7189c49608f0e9c5e6f2f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-assignment-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.rb"
|
|
],
|
|
"sha1": "d4251f3dbdf3f678b9c7189c49608f0e9c5e6f2f",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "69d0021063bb3e246f52237cc197d961f841720e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-assignment-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '1' with '0' in an assignment to x"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.rb"
|
|
],
|
|
"sha1": "69d0021063bb3e246f52237cc197d961f841720e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "fc95762a95cae875f373d0a10f8d75ee0edb43b2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-assignment-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '0' with '1' in an assignment to x"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.rb"
|
|
],
|
|
"sha1": "fc95762a95cae875f373d0a10f8d75ee0edb43b2",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "324e7483a6e66ace61a82e9ca9ec4313b9f9d67d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-assignment-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.rb"
|
|
],
|
|
"sha1": "324e7483a6e66ace61a82e9ca9ec4313b9f9d67d",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "b8b9969ef1d46b1ae3c297fb5ec601829dacd40b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-assignment-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.rb"
|
|
],
|
|
"sha1": "b8b9969ef1d46b1ae3c297fb5ec601829dacd40b",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "71e35943e57f31d45bc9ce15aa61ea7934d4ab0e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-assignment-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.rb"
|
|
],
|
|
"sha1": "71e35943e57f31d45bc9ce15aa61ea7934d4ab0e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "408786e5cefcee8c5743d08b32f3eaad70d9da44"
|
|
}]
|