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/pseudo-variables.json

641 lines
20 KiB
JSON
Raw Normal View History

2016-10-24 20:43:31 +03:00
[{
2016-10-31 23:21:58 +03:00
"testCaseDescription": "ruby-pseudo-variables-insert-test",
2016-10-24 20:43:31 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:21:58 +03:00
"pseudo-variables.rb": [
2016-10-24 20:43:31 +03:00
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
4
]
}
},
"summary": "Added 'nil' identifier"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
6
]
}
},
"summary": "Added 'false'"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Added 'true'"
}
]
},
"errors": {}
},
"filePaths": [
2016-10-31 23:21:58 +03:00
"pseudo-variables.rb"
2016-10-24 20:43:31 +03:00
],
2016-11-04 00:27:47 +03:00
"sha1": "741ee81fa0d3caa89c2c902245b4ffd6e16f28af",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "a5986b39cb73b8e3f449bf7d6fb14a2fafee7265"
2016-10-24 20:43:31 +03:00
}
,{
2016-10-31 23:21:58 +03:00
"testCaseDescription": "ruby-pseudo-variables-replacement-insert-test",
2016-10-24 20:43:31 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:21:58 +03:00
"pseudo-variables.rb": [
2016-10-24 20:43:31 +03:00
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
4
]
}
},
"summary": "Added the 'NIL' identifier"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Added 'TRUE'"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added 'FALSE'"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Added the 'nil' identifier"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
6
]
}
},
"summary": "Added 'false'"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
5
]
}
},
"summary": "Added 'true'"
}
]
},
"errors": {}
},
"filePaths": [
2016-10-31 23:21:58 +03:00
"pseudo-variables.rb"
2016-10-24 20:43:31 +03:00
],
2016-11-04 00:27:47 +03:00
"sha1": "a5986b39cb73b8e3f449bf7d6fb14a2fafee7265",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "928f175579f6edbd073223084528b16d78ae24d3"
2016-10-24 20:43:31 +03:00
}
,{
2016-10-31 23:21:58 +03:00
"testCaseDescription": "ruby-pseudo-variables-delete-insert-test",
2016-10-24 20:43:31 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:21:58 +03:00
"pseudo-variables.rb": [
2016-10-24 20:43:31 +03:00
{
"span": {
"replace": [
{
"start": [
2,
1
],
"end": [
2,
4
]
},
{
"start": [
1,
1
],
"end": [
1,
4
]
}
]
},
"summary": "Replaced the 'NIL' identifier with the 'nil' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
5
]
},
{
"start": [
3,
1
],
"end": [
3,
6
]
}
]
},
"summary": "Replaced 'TRUE' with 'false'"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Added 'true'"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Deleted 'FALSE'"
}
]
},
"errors": {}
},
"filePaths": [
2016-10-31 23:21:58 +03:00
"pseudo-variables.rb"
2016-10-24 20:43:31 +03:00
],
2016-11-04 00:27:47 +03:00
"sha1": "928f175579f6edbd073223084528b16d78ae24d3",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "7c2c0726b15230fba284b1316c1b4211c73e3b75"
2016-10-24 20:43:31 +03:00
}
,{
2016-10-31 23:21:58 +03:00
"testCaseDescription": "ruby-pseudo-variables-replacement-test",
2016-10-24 20:43:31 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:21:58 +03:00
"pseudo-variables.rb": [
2016-10-24 20:43:31 +03:00
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
4
]
},
{
"start": [
2,
1
],
"end": [
2,
4
]
}
]
},
"summary": "Replaced the 'nil' identifier with the 'NIL' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
6
]
},
{
"start": [
3,
1
],
"end": [
3,
5
]
}
]
},
"summary": "Replaced 'false' with 'TRUE'"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added 'FALSE'"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Deleted 'true'"
}
]
},
"errors": {}
},
"filePaths": [
2016-10-31 23:21:58 +03:00
"pseudo-variables.rb"
2016-10-24 20:43:31 +03:00
],
2016-11-04 00:27:47 +03:00
"sha1": "7c2c0726b15230fba284b1316c1b4211c73e3b75",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "3233d29d62cf65348431a1d9174212662fe44343"
2016-10-24 20:43:31 +03:00
}
,{
2016-10-31 23:21:58 +03:00
"testCaseDescription": "ruby-pseudo-variables-delete-replacement-test",
2016-10-24 20:43:31 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:21:58 +03:00
"pseudo-variables.rb": [
2016-10-24 20:43:31 +03:00
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted the 'NIL' identifier"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Deleted 'TRUE'"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Deleted 'FALSE'"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Deleted the 'nil' identifier"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
6
]
}
},
"summary": "Deleted 'false'"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
5
]
}
},
"summary": "Deleted 'true'"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
4
]
}
},
"summary": "Added the 'NIL' identifier"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
5
]
}
},
"summary": "Added 'TRUE'"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
6
]
}
},
"summary": "Added 'FALSE'"
}
]
},
"errors": {}
},
"filePaths": [
2016-10-31 23:21:58 +03:00
"pseudo-variables.rb"
2016-10-24 20:43:31 +03:00
],
2016-11-04 00:27:47 +03:00
"sha1": "3233d29d62cf65348431a1d9174212662fe44343",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "a5dd13161c621e5f499b7105f9042ea823a789fb"
2016-10-24 20:43:31 +03:00
}
,{
2016-10-31 23:21:58 +03:00
"testCaseDescription": "ruby-pseudo-variables-delete-test",
2016-10-24 20:43:31 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:21:58 +03:00
"pseudo-variables.rb": [
2016-10-24 20:43:31 +03:00
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
4
]
}
},
"summary": "Deleted the 'nil' identifier"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
6
]
}
},
"summary": "Deleted 'false'"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Deleted 'true'"
}
]
},
"errors": {}
},
"filePaths": [
2016-10-31 23:21:58 +03:00
"pseudo-variables.rb"
2016-10-24 20:43:31 +03:00
],
2016-11-04 00:27:47 +03:00
"sha1": "a5dd13161c621e5f499b7105f9042ea823a789fb",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "10737704683ddfeee507ff49b3efa324c5a2015f"
2016-10-24 20:43:31 +03:00
}
,{
2016-10-31 23:21:58 +03:00
"testCaseDescription": "ruby-pseudo-variables-delete-rest-test",
2016-10-24 20:43:31 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:21:58 +03:00
"pseudo-variables.rb": [
2016-10-24 20:43:31 +03:00
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted 'NIL' identifier"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Deleted 'TRUE'"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Deleted 'FALSE'"
}
]
},
"errors": {}
},
"filePaths": [
2016-10-31 23:21:58 +03:00
"pseudo-variables.rb"
2016-10-24 20:43:31 +03:00
],
2016-11-04 00:27:47 +03:00
"sha1": "10737704683ddfeee507ff49b3efa324c5a2015f",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-04 00:27:47 +03:00
"sha2": "33c9699e9d5f9d31570c1e9fb2d9c5b3876b8e1e"
2016-10-24 20:43:31 +03:00
}]