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/assignment.json
2016-11-02 10:52:40 -07:00

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": "39ab06168d03371d3da338d16260edae15587624",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2200128f75fb68ac92ed5c92714721fc531440ca"
}
,{
"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": "2200128f75fb68ac92ed5c92714721fc531440ca",
"gitDir": "test/corpus/repos/ruby",
"sha2": "236dd3e485c12472eb020f66fc06a09c51383796"
}
,{
"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": "236dd3e485c12472eb020f66fc06a09c51383796",
"gitDir": "test/corpus/repos/ruby",
"sha2": "6ba82836a4ab3045b20f059df4d027f42c1a6198"
}
,{
"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": "6ba82836a4ab3045b20f059df4d027f42c1a6198",
"gitDir": "test/corpus/repos/ruby",
"sha2": "b07d2454922661935fe5dd9f8d5b80e769857343"
}
,{
"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": "b07d2454922661935fe5dd9f8d5b80e769857343",
"gitDir": "test/corpus/repos/ruby",
"sha2": "185f57b46dada3627919f9a03d7d3eaa48d1ba97"
}
,{
"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": "185f57b46dada3627919f9a03d7d3eaa48d1ba97",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2c489827c048884448b71cc626aa46c57c21db01"
}
,{
"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": "2c489827c048884448b71cc626aa46c57c21db01",
"gitDir": "test/corpus/repos/ruby",
"sha2": "61f2c143a6d54b0ca0f82f4bbf8a5da6e761bbde"
}]