1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 16:33:03 +03:00
semantic/test/corpus/diff-summaries/ruby/pseudo-variables.json

840 lines
25 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 the 'nil' identifier"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
5
]
}
},
"summary": "Added the 'self' identifier"
},
2016-10-24 20:43:31 +03:00
{
"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
],
"patch": [
"diff --git a/pseudo-variables.rb b/pseudo-variables.rb",
"index e69de29..2be92bc 100644",
"--- a/pseudo-variables.rb",
"+++ b/pseudo-variables.rb",
"@@ -0,0 +1,4 @@",
"+nil",
"+self",
"+false",
"+true"
],
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2017-01-11 00:58:40 +03:00
"shas": "414359cbc371782f44c8d0194f2da04cab694899..9bf5038af2ee347c681202fb716bb0f7e55aac49"
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": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
5
]
}
},
"summary": "Added the 'self' identifier"
},
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": [
6,
1
],
"end": [
6,
5
]
}
},
"summary": "Added the 'self' identifier"
},
2016-10-24 20:43:31 +03:00
{
"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
],
"patch": [
"diff --git a/pseudo-variables.rb b/pseudo-variables.rb",
"index 2be92bc..e5837f2 100644",
"--- a/pseudo-variables.rb",
"+++ b/pseudo-variables.rb",
"@@ -1,3 +1,11 @@",
"+self",
"+NIL",
"+TRUE",
"+FALSE",
"+nil",
"+self",
"+false",
"+true",
" nil",
" self",
" false"
],
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2017-01-11 00:58:40 +03:00
"shas": "9bf5038af2ee347c681202fb716bb0f7e55aac49..eb825b55fb61038c20823e4f55bc7fe6c32eab1d"
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": {
"insert": {
"start": [
3,
1
],
"end": [
3,
6
]
}
2016-10-24 20:43:31 +03:00
},
"summary": "Added 'false'"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Added 'true'"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Deleted 'TRUE'"
},
2016-10-24 20:43:31 +03:00
{
"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
],
"patch": [
"diff --git a/pseudo-variables.rb b/pseudo-variables.rb",
"index e5837f2..e3f5814 100644",
"--- a/pseudo-variables.rb",
"+++ b/pseudo-variables.rb",
"@@ -1,7 +1,7 @@",
"+nil",
" self",
"-NIL",
"-TRUE",
"-FALSE",
"+false",
"+true",
" nil",
" self",
" false"
],
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2017-01-11 00:58:40 +03:00
"shas": "eb825b55fb61038c20823e4f55bc7fe6c32eab1d..5690c3761db9fce645033dbaf252aa8429514b17"
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": {
"delete": {
"start": [
1,
1
],
"end": [
1,
4
]
}
},
"summary": "Deleted the 'nil' identifier"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
4
]
}
2016-10-24 20:43:31 +03:00
},
"summary": "Added the 'NIL' identifier"
2016-10-24 20:43:31 +03:00
},
{
"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
],
"patch": [
"diff --git a/pseudo-variables.rb b/pseudo-variables.rb",
"index e3f5814..e5837f2 100644",
"--- a/pseudo-variables.rb",
"+++ b/pseudo-variables.rb",
"@@ -1,7 +1,7 @@",
"-nil",
" self",
"-false",
"-true",
"+NIL",
"+TRUE",
"+FALSE",
" nil",
" self",
" false"
],
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2017-01-11 00:58:40 +03:00
"shas": "5690c3761db9fce645033dbaf252aa8429514b17..a3104e3b4d5b736e381bf5f2b9019576d348be6b"
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": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
5
]
}
},
"summary": "Deleted the 'self' identifier"
},
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": [
9,
2016-10-24 20:43:31 +03:00
1
],
"end": [
9,
2016-10-24 20:43:31 +03:00
4
]
}
},
"summary": "Deleted the 'nil' identifier"
},
{
"span": {
"insert": {
2016-10-24 20:43:31 +03:00
"start": [
6,
2016-10-24 20:43:31 +03:00
1
],
"end": [
6,
4
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Added the 'NIL' identifier"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"insert": {
2016-10-24 20:43:31 +03:00
"start": [
7,
2016-10-24 20:43:31 +03:00
1
],
"end": [
7,
2016-10-24 20:43:31 +03:00
5
]
}
},
"summary": "Added 'TRUE'"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"insert": {
"start": [
8,
2016-10-24 20:43:31 +03:00
1
],
"end": [
8,
6
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Added 'FALSE'"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"delete": {
2016-10-24 20:43:31 +03:00
"start": [
11,
2016-10-24 20:43:31 +03:00
1
],
"end": [
11,
6
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted 'false'"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"delete": {
2016-10-24 20:43:31 +03:00
"start": [
12,
2016-10-24 20:43:31 +03:00
1
],
"end": [
12,
5
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted 'true'"
2016-10-24 20:43:31 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-10-31 23:21:58 +03:00
"pseudo-variables.rb"
2016-10-24 20:43:31 +03:00
],
"patch": [
"diff --git a/pseudo-variables.rb b/pseudo-variables.rb",
"index e5837f2..8873ea5 100644",
"--- a/pseudo-variables.rb",
"+++ b/pseudo-variables.rb",
"@@ -1,12 +1,8 @@",
"-self",
"-NIL",
"-TRUE",
"-FALSE",
" nil",
" self",
" false",
" true",
"-nil",
" self",
"-false",
"-true",
"+NIL",
"+TRUE",
"+FALSE"
],
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2017-01-11 00:58:40 +03:00
"shas": "a3104e3b4d5b736e381bf5f2b9019576d348be6b..58f76eb106be0c659f3456a0fa22e431139337d0"
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": [
2,
1
],
"end": [
2,
5
]
}
},
"summary": "Deleted the 'self' identifier"
},
2016-10-24 20:43:31 +03:00
{
"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
],
"patch": [
"diff --git a/pseudo-variables.rb b/pseudo-variables.rb",
"index 8873ea5..30bb4d2 100644",
"--- a/pseudo-variables.rb",
"+++ b/pseudo-variables.rb",
"@@ -1,7 +1,3 @@",
"-nil",
"-self",
"-false",
"-true",
" self",
" NIL",
" TRUE"
],
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2017-01-11 00:58:40 +03:00
"shas": "58f76eb106be0c659f3456a0fa22e431139337d0..e4255111fb0e45ed91667b07b8fe9d09041529e0"
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": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
5
]
}
},
"summary": "Deleted the 'self' identifier"
},
2016-10-24 20:43:31 +03:00
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted the 'NIL' identifier"
2016-10-24 20:43:31 +03:00
},
{
"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
],
"patch": [
"diff --git a/pseudo-variables.rb b/pseudo-variables.rb",
"index 30bb4d2..e69de29 100644",
"--- a/pseudo-variables.rb",
"+++ b/pseudo-variables.rb",
"@@ -1,4 +0,0 @@",
"-self",
"-NIL",
"-TRUE",
"-FALSE"
],
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2017-01-11 00:58:40 +03:00
"shas": "e4255111fb0e45ed91667b07b8fe9d09041529e0..2b87a0ce9eaee310f329b9954156c555ba523d79"
2016-10-24 20:43:31 +03:00
}]