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/until.json

353 lines
10 KiB
JSON
Raw Normal View History

[{
"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"
],
2016-11-04 00:27:47 +03:00
"sha1": "182cede4a37df9525c92596e09fa0e91ff7cb3c7",
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "3c29375d894445dbd6f9ff9a03be4f56e5172df0"
}
,{
"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"
],
2016-11-04 00:27:47 +03:00
"sha1": "3c29375d894445dbd6f9ff9a03be4f56e5172df0",
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "4f2c7ddca9997d0648feabfda0f2d99c14f57e33"
}
,{
"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"
],
2016-11-04 00:27:47 +03:00
"sha1": "4f2c7ddca9997d0648feabfda0f2d99c14f57e33",
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "41d2400f230cbf0bf9bff08b1336145a2f725f1b"
}
,{
"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"
],
2016-11-04 00:27:47 +03:00
"sha1": "41d2400f230cbf0bf9bff08b1336145a2f725f1b",
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "ec90f5d64466a89661e80b9a64a638ec78f090ab"
}
,{
"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"
],
2016-11-04 00:27:47 +03:00
"sha1": "ec90f5d64466a89661e80b9a64a638ec78f090ab",
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "6163a8ff15e5fa7965c91cdaef1468d0441aaca9"
}
,{
"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"
],
2016-11-04 00:27:47 +03:00
"sha1": "6163a8ff15e5fa7965c91cdaef1468d0441aaca9",
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "eeddd7b4ce4a631ea33b49233d9f5a1d9b6c3005"
}
,{
"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"
],
2016-11-04 00:27:47 +03:00
"sha1": "eeddd7b4ce4a631ea33b49233d9f5a1d9b6c3005",
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "214e09e87f3e1e6bfdd4c3c5a47d96d9a6ce4e29"
}]