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
[{
"testCaseDescription": "ruby-pseudo_variables-insert-test",
"expectedResult": {
"changes": {
"pseudo_variables.rb": [
{
"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": [
"pseudo_variables.rb"
],
"sha1": "047785c7b549eb7333777c992899608baef688af",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "dee27de4b537f5c28bd05f1c78b490880754dd61"
2016-10-24 20:43:31 +03:00
}
,{
"testCaseDescription": "ruby-pseudo_variables-replacement-insert-test",
"expectedResult": {
"changes": {
"pseudo_variables.rb": [
{
"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": [
"pseudo_variables.rb"
],
"sha1": "dee27de4b537f5c28bd05f1c78b490880754dd61",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "803b0fe5ce455e518e330cd5adfeb715ecd89945"
2016-10-24 20:43:31 +03:00
}
,{
"testCaseDescription": "ruby-pseudo_variables-delete-insert-test",
"expectedResult": {
"changes": {
"pseudo_variables.rb": [
{
"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": [
"pseudo_variables.rb"
],
"sha1": "803b0fe5ce455e518e330cd5adfeb715ecd89945",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "d619a7df7adf43647e1a8e7ca7aba26a2c72ad88"
2016-10-24 20:43:31 +03:00
}
,{
"testCaseDescription": "ruby-pseudo_variables-replacement-test",
"expectedResult": {
"changes": {
"pseudo_variables.rb": [
{
"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": [
"pseudo_variables.rb"
],
"sha1": "d619a7df7adf43647e1a8e7ca7aba26a2c72ad88",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "06a022682fd7d9b512c787f189d93fc869819a48"
2016-10-24 20:43:31 +03:00
}
,{
"testCaseDescription": "ruby-pseudo_variables-delete-replacement-test",
"expectedResult": {
"changes": {
"pseudo_variables.rb": [
{
"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": [
"pseudo_variables.rb"
],
"sha1": "06a022682fd7d9b512c787f189d93fc869819a48",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "3abcf0f77607161ab8e30fc18f7d51003a3a8649"
2016-10-24 20:43:31 +03:00
}
,{
"testCaseDescription": "ruby-pseudo_variables-delete-test",
"expectedResult": {
"changes": {
"pseudo_variables.rb": [
{
"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": [
"pseudo_variables.rb"
],
"sha1": "3abcf0f77607161ab8e30fc18f7d51003a3a8649",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "250aced19971c669c039b7be11929c91d67cb4dc"
2016-10-24 20:43:31 +03:00
}
,{
"testCaseDescription": "ruby-pseudo_variables-delete-rest-test",
"expectedResult": {
"changes": {
"pseudo_variables.rb": [
{
"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": [
"pseudo_variables.rb"
],
"sha1": "250aced19971c669c039b7be11929c91d67cb4dc",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "1dd53488a51db67641991a6b4cf4866e2bde57a0"
2016-10-24 20:43:31 +03:00
}]