mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
360 lines
10 KiB
JSON
360 lines
10 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-and-or-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"and-or.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo and bar' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"and-or.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/and-or.rb b/and-or.rb",
|
|
"index e69de29..8e828c0 100644",
|
|
"--- a/and-or.rb",
|
|
"+++ b/and-or.rb",
|
|
"@@ -0,0 +1 @@",
|
|
"+foo and bar"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "c7d3f438c72d2ab2a09e3fa47ba1cf9b175d2a9b..0bc5f86f8c781f501003b94889818004364037b9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-and-or-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"and-or.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo or bar' boolean operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a or b and c' boolean operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo and bar' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"and-or.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/and-or.rb b/and-or.rb",
|
|
"index 8e828c0..fe52247 100644",
|
|
"--- a/and-or.rb",
|
|
"+++ b/and-or.rb",
|
|
"@@ -1 +1,4 @@",
|
|
"+foo or bar",
|
|
"+a or b and c",
|
|
"+foo and bar",
|
|
" foo and bar"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "0bc5f86f8c781f501003b94889818004364037b9..2c06275827cfa3bbaada5117072cd19574d8d7a9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-and-or-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"and-or.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a or b and c' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"and-or.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/and-or.rb b/and-or.rb",
|
|
"index fe52247..b09c067 100644",
|
|
"--- a/and-or.rb",
|
|
"+++ b/and-or.rb",
|
|
"@@ -1,4 +1,3 @@",
|
|
"-foo or bar",
|
|
"-a or b and c",
|
|
"+foo and bar",
|
|
" foo and bar",
|
|
" foo and bar"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "2c06275827cfa3bbaada5117072cd19574d8d7a9..e800a12b636011a03bc99b86835317cd7ad3ecd1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-and-or-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"and-or.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a or b and c' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"and-or.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/and-or.rb b/and-or.rb",
|
|
"index b09c067..fe52247 100644",
|
|
"--- a/and-or.rb",
|
|
"+++ b/and-or.rb",
|
|
"@@ -1,3 +1,4 @@",
|
|
"-foo and bar",
|
|
"+foo or bar",
|
|
"+a or b and c",
|
|
" foo and bar",
|
|
" foo and bar"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "e800a12b636011a03bc99b86835317cd7ad3ecd1..c9340cbb8ada35c896fa285761dd0e9dac96fd0b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-and-or-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"and-or.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo or bar' boolean operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a or b and c' boolean operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a or b and c' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"and-or.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/and-or.rb b/and-or.rb",
|
|
"index fe52247..a621325 100644",
|
|
"--- a/and-or.rb",
|
|
"+++ b/and-or.rb",
|
|
"@@ -1,4 +1,3 @@",
|
|
"+foo and bar",
|
|
" foo or bar",
|
|
" a or b and c",
|
|
"-foo and bar",
|
|
"-foo and bar"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "c9340cbb8ada35c896fa285761dd0e9dac96fd0b..66224b27113350bc8e9d7ffddc2fe22fee05baa2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-and-or-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"and-or.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo and bar' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"and-or.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/and-or.rb b/and-or.rb",
|
|
"index a621325..d2060f6 100644",
|
|
"--- a/and-or.rb",
|
|
"+++ b/and-or.rb",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-foo and bar",
|
|
" foo or bar",
|
|
" a or b and c"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "66224b27113350bc8e9d7ffddc2fe22fee05baa2..22157102e33b0c6c91eed738c3c7a3ce0edc3fa7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-and-or-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"and-or.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo or bar' boolean operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a or b and c' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"and-or.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/and-or.rb b/and-or.rb",
|
|
"index d2060f6..e69de29 100644",
|
|
"--- a/and-or.rb",
|
|
"+++ b/and-or.rb",
|
|
"@@ -1,2 +0,0 @@",
|
|
"-foo or bar",
|
|
"-a or b and c"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "22157102e33b0c6c91eed738c3c7a3ce0edc3fa7..956b136e24f76c977fefd27d5368ecd527f721ec"
|
|
}]
|