1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/ruby/for.json

287 lines
8.4 KiB
JSON
Raw Normal View History

2016-10-27 20:07:24 +03:00
[{
"testCaseDescription": "ruby-for-insert-test",
"expectedResult": {
"changes": {
"for.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Added the 'x in y' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for.rb"
],
2016-11-04 00:27:47 +03:00
"sha1": "11c1f670003a6d95a99b37f02ad9c5628e60c3cd",
2016-10-27 20:07:24 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "4cdb7c74cf51031620d90781a3fa2e806d82dcd3"
2016-10-27 20:07:24 +03:00
}
,{
"testCaseDescription": "ruby-for-replacement-insert-test",
"expectedResult": {
"changes": {
"for.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Added the 'i in [1,2,3]' for statement"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
6,
4
]
}
},
"summary": "Added the 'x in y' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for.rb"
],
2016-11-04 00:27:47 +03:00
"sha1": "4cdb7c74cf51031620d90781a3fa2e806d82dcd3",
2016-10-27 20:07:24 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "17e1ea04b22d68a01e3d5fdf82e072ec4f1931be"
2016-10-27 20:07:24 +03:00
}
,{
"testCaseDescription": "ruby-for-delete-insert-test",
"expectedResult": {
"changes": {
"for.rb": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
3,
4
]
},
{
"start": [
1,
1
],
"end": [
3,
4
]
}
]
},
"summary": "Replaced the 'i in [1,2,3]' for statement with the 'x in y' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for.rb"
],
2016-11-04 00:27:47 +03:00
"sha1": "17e1ea04b22d68a01e3d5fdf82e072ec4f1931be",
2016-10-27 20:07:24 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "281d83003bf56b54afdb80a361ed037a9697929b"
2016-10-27 20:07:24 +03:00
}
,{
"testCaseDescription": "ruby-for-replacement-test",
"expectedResult": {
"changes": {
"for.rb": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
3,
4
]
},
{
"start": [
1,
1
],
"end": [
3,
4
]
}
]
},
"summary": "Replaced the 'x in y' for statement with the 'i in [1,2,3]' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for.rb"
],
2016-11-04 00:27:47 +03:00
"sha1": "281d83003bf56b54afdb80a361ed037a9697929b",
2016-10-27 20:07:24 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "de3fea29885e59d72365364319ff86ae53d56bfc"
2016-10-27 20:07:24 +03:00
}
,{
"testCaseDescription": "ruby-for-delete-replacement-test",
"expectedResult": {
"changes": {
"for.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted the 'i in [1,2,3]' for statement"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
6,
4
]
}
},
"summary": "Deleted the 'x in y' for statement"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
6,
4
]
}
},
"summary": "Added the 'i in [1,2,3]' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for.rb"
],
2016-11-04 00:27:47 +03:00
"sha1": "de3fea29885e59d72365364319ff86ae53d56bfc",
2016-10-27 20:07:24 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "bd869c38211dbfc3a4a60c3540c6f51d161e32ad"
2016-10-27 20:07:24 +03:00
}
,{
"testCaseDescription": "ruby-for-delete-test",
"expectedResult": {
"changes": {
"for.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted the 'x in y' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for.rb"
],
2016-11-04 00:27:47 +03:00
"sha1": "bd869c38211dbfc3a4a60c3540c6f51d161e32ad",
2016-10-27 20:07:24 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "41027fb036f9dae593152c10c224c0cdc80763f1"
2016-10-27 20:07:24 +03:00
}
,{
"testCaseDescription": "ruby-for-delete-rest-test",
"expectedResult": {
"changes": {
"for.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted the 'i in [1,2,3]' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for.rb"
],
2016-11-04 00:27:47 +03:00
"sha1": "41027fb036f9dae593152c10c224c0cdc80763f1",
2016-10-27 20:07:24 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "a61d0fc144c41fdbac85a0a3f7972d0a414282b5"
2016-10-27 20:07:24 +03:00
}]