mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +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": "423e582521581b9600f2a288304f2db8aa78964e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "13f98c430aa96a9ca70537cfe3218452ed30ec42"
|
|
}
|
|
,{
|
|
"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": "13f98c430aa96a9ca70537cfe3218452ed30ec42",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "43d5ec6db2fe76a8d1801cb23eb16562e5c15ff8"
|
|
}
|
|
,{
|
|
"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": "43d5ec6db2fe76a8d1801cb23eb16562e5c15ff8",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "8ca625d79135b4a70f68c94d5a208c182478efbd"
|
|
}
|
|
,{
|
|
"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": "8ca625d79135b4a70f68c94d5a208c182478efbd",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "9035ad72c504e9ed3f0ebdbfbdf3a40996d0743a"
|
|
}
|
|
,{
|
|
"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": "9035ad72c504e9ed3f0ebdbfbdf3a40996d0743a",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "cabfaba1b0b52ffae8a94efe5f6139b4cbfd69ed"
|
|
}
|
|
,{
|
|
"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": "cabfaba1b0b52ffae8a94efe5f6139b4cbfd69ed",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "2db28a1aa6756c7ad5c0ad6ea9ce673190b06d07"
|
|
}
|
|
,{
|
|
"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": "2db28a1aa6756c7ad5c0ad6ea9ce673190b06d07",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "f79ae6e404ace92bec4e913e41c835a3deeb054f"
|
|
}]
|