1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +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-02 20:52:40 +03:00
"sha1": "ac466f9d7cceaf9d88c8a09227be9b217a9b2155",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "9b248f8fd8be70c96e0dbf75881917c82b2a1a4f"
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-02 20:52:40 +03:00
"sha1": "9b248f8fd8be70c96e0dbf75881917c82b2a1a4f",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "bf0de416b8e40af5347c4910fbfbe46a4d3295be"
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-02 20:52:40 +03:00
"sha1": "bf0de416b8e40af5347c4910fbfbe46a4d3295be",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "dc0bda66f0c92cc8c4b4cde2c928f0b92cb2eb55"
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-02 20:52:40 +03:00
"sha1": "dc0bda66f0c92cc8c4b4cde2c928f0b92cb2eb55",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "b6725d6b44751ca5f1bf6d65738e7f68608121e3"
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-02 20:52:40 +03:00
"sha1": "b6725d6b44751ca5f1bf6d65738e7f68608121e3",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "b99c538c958a032b9212913f583fd829c9b0beb2"
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-02 20:52:40 +03:00
"sha1": "b99c538c958a032b9212913f583fd829c9b0beb2",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "d8e46d38a61fe3cac1aa3a18dcbb386147a45586"
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-02 20:52:40 +03:00
"sha1": "d8e46d38a61fe3cac1aa3a18dcbb386147a45586",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "35da0b26118267a2e7eceee54e4be6bb57eb8f9d"
2016-10-24 20:43:31 +03:00
}]