mirror of
https://github.com/github/semantic.git
synced 2024-12-27 00:44:57 +03:00
444 lines
13 KiB
JSON
444 lines
13 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-comma-operator-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comma-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comma-operator.js b/comma-operator.js",
|
|
"index e69de29..cff019f 100644",
|
|
"--- a/comma-operator.js",
|
|
"+++ b/comma-operator.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+a = 1, b = 2;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "ec86aaba01801d01aca70fd31403642be1e2d438..b0a5f928a8a4594bb176a56275c43ccab6e2e2a0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comma-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
8
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comma-operator.js b/comma-operator.js",
|
|
"index cff019f..93ece10 100644",
|
|
"--- a/comma-operator.js",
|
|
"+++ b/comma-operator.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+c = {d: (3, 4 + 5, 6)};",
|
|
"+a = 1, b = 2;",
|
|
" a = 1, b = 2;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "b0a5f928a8a4594bb176a56275c43ccab6e2e2a0..315b46ccdb9a45c374b4ed1cc51a062d74c13a78"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comma-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comma-operator.js b/comma-operator.js",
|
|
"index 93ece10..f738c2d 100644",
|
|
"--- a/comma-operator.js",
|
|
"+++ b/comma-operator.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-c = {d: (3, 4 + 5, 6)};",
|
|
"+a = 1, b = 2;",
|
|
" a = 1, b = 2;",
|
|
" a = 1, b = 2;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "315b46ccdb9a45c374b4ed1cc51a062d74c13a78..30cf69eb0cc5543fe53be82f29cd0e0371e30cd1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comma-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comma-operator.js b/comma-operator.js",
|
|
"index f738c2d..93ece10 100644",
|
|
"--- a/comma-operator.js",
|
|
"+++ b/comma-operator.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-a = 1, b = 2;",
|
|
"+c = {d: (3, 4 + 5, 6)};",
|
|
" a = 1, b = 2;",
|
|
" a = 1, b = 2;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "30cf69eb0cc5543fe53be82f29cd0e0371e30cd1..a454c132f64a253a51cbf1a1455e74fca9343c23"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comma-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
8
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comma-operator.js b/comma-operator.js",
|
|
"index 93ece10..297e28d 100644",
|
|
"--- a/comma-operator.js",
|
|
"+++ b/comma-operator.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-c = {d: (3, 4 + 5, 6)};",
|
|
"-a = 1, b = 2;",
|
|
" a = 1, b = 2;",
|
|
"+c = {d: (3, 4 + 5, 6)};"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "a454c132f64a253a51cbf1a1455e74fca9343c23..db24ea61ad00e73c91b0a4b616f333a5eac48f29"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comma-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comma-operator.js b/comma-operator.js",
|
|
"index 297e28d..421bc7f 100644",
|
|
"--- a/comma-operator.js",
|
|
"+++ b/comma-operator.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-a = 1, b = 2;",
|
|
" c = {d: (3, 4 + 5, 6)};"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "db24ea61ad00e73c91b0a4b616f333a5eac48f29..4ec8128c2ab11f7bf00c002d0fec6c8601b14c16"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comma-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comma-operator.js b/comma-operator.js",
|
|
"index 421bc7f..e69de29 100644",
|
|
"--- a/comma-operator.js",
|
|
"+++ b/comma-operator.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-c = {d: (3, 4 + 5, 6)};"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "4ec8128c2ab11f7bf00c002d0fec6c8601b14c16..0ccf8092231ebc8ac92cc60fe614f1681bc03a89"
|
|
}]
|