1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00
semantic/test/corpus/diff-summaries/ruby/pseudo-variables.json
2017-01-10 16:58:40 -05:00

840 lines
25 KiB
JSON

[{
"testCaseDescription": "ruby-pseudo-variables-insert-test",
"expectedResult": {
"changes": {
"pseudo-variables.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
4
]
}
},
"summary": "Added the 'nil' identifier"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
5
]
}
},
"summary": "Added the 'self' 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"
],
"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"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "414359cbc371782f44c8d0194f2da04cab694899..9bf5038af2ee347c681202fb716bb0f7e55aac49"
}
,{
"testCaseDescription": "ruby-pseudo-variables-replacement-insert-test",
"expectedResult": {
"changes": {
"pseudo-variables.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
5
]
}
},
"summary": "Added the 'self' identifier"
},
{
"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"
},
{
"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"
],
"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"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "9bf5038af2ee347c681202fb716bb0f7e55aac49..eb825b55fb61038c20823e4f55bc7fe6c32eab1d"
}
,{
"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": {
"insert": {
"start": [
3,
1
],
"end": [
3,
6
]
}
},
"summary": "Added 'false'"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Added 'true'"
},
{
"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"
],
"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"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "eb825b55fb61038c20823e4f55bc7fe6c32eab1d..5690c3761db9fce645033dbaf252aa8429514b17"
}
,{
"testCaseDescription": "ruby-pseudo-variables-replacement-test",
"expectedResult": {
"changes": {
"pseudo-variables.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
4
]
}
},
"summary": "Deleted the 'nil' identifier"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
4
]
}
},
"summary": "Added 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"
],
"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"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "5690c3761db9fce645033dbaf252aa8429514b17..a3104e3b4d5b736e381bf5f2b9019576d348be6b"
}
,{
"testCaseDescription": "ruby-pseudo-variables-delete-replacement-test",
"expectedResult": {
"changes": {
"pseudo-variables.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
5
]
}
},
"summary": "Deleted the 'self' identifier"
},
{
"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,
1
],
"end": [
9,
4
]
}
},
"summary": "Deleted the 'nil' identifier"
},
{
"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'"
},
{
"span": {
"delete": {
"start": [
11,
1
],
"end": [
11,
6
]
}
},
"summary": "Deleted 'false'"
},
{
"span": {
"delete": {
"start": [
12,
1
],
"end": [
12,
5
]
}
},
"summary": "Deleted 'true'"
}
]
},
"errors": {}
},
"filePaths": [
"pseudo-variables.rb"
],
"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"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "a3104e3b4d5b736e381bf5f2b9019576d348be6b..58f76eb106be0c659f3456a0fa22e431139337d0"
}
,{
"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": [
2,
1
],
"end": [
2,
5
]
}
},
"summary": "Deleted the 'self' 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"
],
"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"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "58f76eb106be0c659f3456a0fa22e431139337d0..e4255111fb0e45ed91667b07b8fe9d09041529e0"
}
,{
"testCaseDescription": "ruby-pseudo-variables-delete-rest-test",
"expectedResult": {
"changes": {
"pseudo-variables.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
5
]
}
},
"summary": "Deleted the 'self' identifier"
},
{
"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'"
}
]
},
"errors": {}
},
"filePaths": [
"pseudo-variables.rb"
],
"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"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "e4255111fb0e45ed91667b07b8fe9d09041529e0..2b87a0ce9eaee310f329b9954156c555ba523d79"
}]