mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
353 lines
10 KiB
JSON
353 lines
10 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-until-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"until.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' until statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'done' until statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"until.rb"
|
|
],
|
|
"sha1": "2a0ab0f4c456df731e938d10e7b53ba6e38ff9e7",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "7ccf5c092c3984c7fee69d577e649cf2879841e3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-until-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"until.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' until statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' until statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'done' until statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"until.rb"
|
|
],
|
|
"sha1": "7ccf5c092c3984c7fee69d577e649cf2879841e3",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "6cec51d96de78e5f991ea031b140fb1bf59b08ad"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-until-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"until.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'done' until statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"until.rb"
|
|
],
|
|
"sha1": "6cec51d96de78e5f991ea031b140fb1bf59b08ad",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "d9f76fd904c82956603e38fe5f8d5e957a8e408a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-until-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"until.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'done' until statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"until.rb"
|
|
],
|
|
"sha1": "d9f76fd904c82956603e38fe5f8d5e957a8e408a",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "a99f686ac63dc228e5f6f0d88742cbb7b82149cd"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-until-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"until.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' until statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' until statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'done' until statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' until statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"until.rb"
|
|
],
|
|
"sha1": "a99f686ac63dc228e5f6f0d88742cbb7b82149cd",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "8147dc9eea217a8208bf3fe855484a4e4bccaa0b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-until-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"until.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' until statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'done' until statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"until.rb"
|
|
],
|
|
"sha1": "8147dc9eea217a8208bf3fe855484a4e4bccaa0b",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "7d11f881a4eba477a64b5d2b2ec4aad7a1f150c5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-until-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"until.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' until statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"until.rb"
|
|
],
|
|
"sha1": "7d11f881a4eba477a64b5d2b2ec4aad7a1f150c5",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "662fccf89bd39a15900856298a1465bf2a88811f"
|
|
}]
|