mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
840 lines
25 KiB
JSON
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": "d92b06aee0d1f67da39bcc34fd6d9920da89f089..f244146cbbeac71aca6818420638059664e3b957"
|
|
}
|
|
,{
|
|
"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": "f244146cbbeac71aca6818420638059664e3b957..824d7890359e99e81b998602857443393e4904c9"
|
|
}
|
|
,{
|
|
"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": "824d7890359e99e81b998602857443393e4904c9..062d0836ac07fbc74685c09d4d916aef763f34a7"
|
|
}
|
|
,{
|
|
"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": "062d0836ac07fbc74685c09d4d916aef763f34a7..04c0c35bce1d6642f0a70556fdb8593e94c6d028"
|
|
}
|
|
,{
|
|
"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": "04c0c35bce1d6642f0a70556fdb8593e94c6d028..836b5f1a139aa3d483680a636e593f9728fd96e8"
|
|
}
|
|
,{
|
|
"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": "836b5f1a139aa3d483680a636e593f9728fd96e8..30c34d8542d694db1efe435710ee53196e0f4ab7"
|
|
}
|
|
,{
|
|
"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": "30c34d8542d694db1efe435710ee53196e0f4ab7..37466370f19570447f01519a8c892afd6ced7df8"
|
|
}]
|