1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/ruby/conditional-assignment.json
2016-11-02 10:52:40 -07:00

287 lines
8.7 KiB
JSON

[{
"testCaseDescription": "ruby-conditional-assignment-insert-test",
"expectedResult": {
"changes": {
"conditional-assignment.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Added the 'x' conditional assignment"
}
]
},
"errors": {}
},
"filePaths": [
"conditional-assignment.rb"
],
"sha1": "3c8ecb84c45ce828f5cd9aca26ae38273556fe8e",
"gitDir": "test/corpus/repos/ruby",
"sha2": "7b333e2d2a9f2f1152ea102d7511bb69fd29755f"
}
,{
"testCaseDescription": "ruby-conditional-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"conditional-assignment.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Added the 'x' conditional assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'x' conditional assignment"
}
]
},
"errors": {}
},
"filePaths": [
"conditional-assignment.rb"
],
"sha1": "7b333e2d2a9f2f1152ea102d7511bb69fd29755f",
"gitDir": "test/corpus/repos/ruby",
"sha2": "9666ead2bf7e335c1f025a04547b0f91327b57be"
}
,{
"testCaseDescription": "ruby-conditional-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"conditional-assignment.rb": [
{
"span": {
"replace": [
{
"start": [
1,
7
],
"end": [
1,
8
]
},
{
"start": [
1,
7
],
"end": [
1,
8
]
}
]
},
"summary": "Replaced '7' with '5'"
}
]
},
"errors": {}
},
"filePaths": [
"conditional-assignment.rb"
],
"sha1": "9666ead2bf7e335c1f025a04547b0f91327b57be",
"gitDir": "test/corpus/repos/ruby",
"sha2": "a1abbb73bebe888c871919b566f7ce037b5ca759"
}
,{
"testCaseDescription": "ruby-conditional-assignment-replacement-test",
"expectedResult": {
"changes": {
"conditional-assignment.rb": [
{
"span": {
"replace": [
{
"start": [
1,
7
],
"end": [
1,
8
]
},
{
"start": [
1,
7
],
"end": [
1,
8
]
}
]
},
"summary": "Replaced '5' with '7'"
}
]
},
"errors": {}
},
"filePaths": [
"conditional-assignment.rb"
],
"sha1": "a1abbb73bebe888c871919b566f7ce037b5ca759",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3a358f1595e45feb2bbdc53427d840f0ba6c1420"
}
,{
"testCaseDescription": "ruby-conditional-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"conditional-assignment.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'x' conditional assignment"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Deleted the 'x' conditional assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'x' conditional assignment"
}
]
},
"errors": {}
},
"filePaths": [
"conditional-assignment.rb"
],
"sha1": "3a358f1595e45feb2bbdc53427d840f0ba6c1420",
"gitDir": "test/corpus/repos/ruby",
"sha2": "b8de107e3edcb1f33f28e46968a05d1f461eae94"
}
,{
"testCaseDescription": "ruby-conditional-assignment-delete-test",
"expectedResult": {
"changes": {
"conditional-assignment.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'x' conditional assignment"
}
]
},
"errors": {}
},
"filePaths": [
"conditional-assignment.rb"
],
"sha1": "b8de107e3edcb1f33f28e46968a05d1f461eae94",
"gitDir": "test/corpus/repos/ruby",
"sha2": "ad23021c7e12d4bd686e6b6a0c26915eaac4e95f"
}
,{
"testCaseDescription": "ruby-conditional-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"conditional-assignment.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'x' conditional assignment"
}
]
},
"errors": {}
},
"filePaths": [
"conditional-assignment.rb"
],
"sha1": "ad23021c7e12d4bd686e6b6a0c26915eaac4e95f",
"gitDir": "test/corpus/repos/ruby",
"sha2": "4b0947a8e2e4b499afa4bb5c101a7650e5908ec7"
}]