mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
348 lines
11 KiB
JSON
348 lines
11 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-constructor-call-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructor-call.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'module.Klass(1, \"two\")' constructor"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/constructor-call.js b/constructor-call.js",
|
|
"index e69de29..9d723b9 100644",
|
|
"--- a/constructor-call.js",
|
|
"+++ b/constructor-call.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+new module.Klass(1, \"two\");"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "b1ed87edc6bf561edc524058ab781a95970a3258..692f777ed1db0b3284bd2728f6c651425e20ab34"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-constructor-call-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructor-call.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'module.Klass(1, \"three\")' constructor"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'module.Klass(1, \"two\")' constructor"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/constructor-call.js b/constructor-call.js",
|
|
"index 9d723b9..2c91b11 100644",
|
|
"--- a/constructor-call.js",
|
|
"+++ b/constructor-call.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+new module.Klass(1, \"three\");",
|
|
"+new module.Klass(1, \"two\");",
|
|
" new module.Klass(1, \"two\");"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "692f777ed1db0b3284bd2728f6c651425e20ab34..e4d96364ed5caab5be836020193ea527a6cd6e55"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-constructor-call-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructor-call.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
21
|
|
],
|
|
"end": [
|
|
1,
|
|
28
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
21
|
|
],
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"three\" string with the \"two\" string in the module.Klass(1, \"two\") method call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/constructor-call.js b/constructor-call.js",
|
|
"index 2c91b11..892f542 100644",
|
|
"--- a/constructor-call.js",
|
|
"+++ b/constructor-call.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-new module.Klass(1, \"three\");",
|
|
"+new module.Klass(1, \"two\");",
|
|
" new module.Klass(1, \"two\");",
|
|
" new module.Klass(1, \"two\");"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "e4d96364ed5caab5be836020193ea527a6cd6e55..c5f5c7389717f787423d9698a3e0593a965ffbd5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-constructor-call-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructor-call.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
21
|
|
],
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
21
|
|
],
|
|
"end": [
|
|
1,
|
|
28
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"two\" string with the \"three\" string in the module.Klass(1, \"three\") method call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/constructor-call.js b/constructor-call.js",
|
|
"index 892f542..2c91b11 100644",
|
|
"--- a/constructor-call.js",
|
|
"+++ b/constructor-call.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-new module.Klass(1, \"two\");",
|
|
"+new module.Klass(1, \"three\");",
|
|
" new module.Klass(1, \"two\");",
|
|
" new module.Klass(1, \"two\");"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "c5f5c7389717f787423d9698a3e0593a965ffbd5..d17799b023d4e85c6e1d97220121da96a1323970"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-constructor-call-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructor-call.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'module.Klass(1, \"three\")' constructor"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'module.Klass(1, \"two\")' constructor"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'module.Klass(1, \"three\")' constructor"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/constructor-call.js b/constructor-call.js",
|
|
"index 2c91b11..cd77b98 100644",
|
|
"--- a/constructor-call.js",
|
|
"+++ b/constructor-call.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-new module.Klass(1, \"three\");",
|
|
"-new module.Klass(1, \"two\");",
|
|
" new module.Klass(1, \"two\");",
|
|
"+new module.Klass(1, \"three\");"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "d17799b023d4e85c6e1d97220121da96a1323970..ddc3d491ed287b5aee714bedf5c2de5ba46770ce"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-constructor-call-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructor-call.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'module.Klass(1, \"two\")' constructor"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/constructor-call.js b/constructor-call.js",
|
|
"index cd77b98..75f6a29 100644",
|
|
"--- a/constructor-call.js",
|
|
"+++ b/constructor-call.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-new module.Klass(1, \"two\");",
|
|
" new module.Klass(1, \"three\");"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "ddc3d491ed287b5aee714bedf5c2de5ba46770ce..e0a37e9237220e1382c4502fdfbbb4cc10cf04e0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-constructor-call-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"constructor-call.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'module.Klass(1, \"three\")' constructor"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"constructor-call.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/constructor-call.js b/constructor-call.js",
|
|
"index 75f6a29..e69de29 100644",
|
|
"--- a/constructor-call.js",
|
|
"+++ b/constructor-call.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-new module.Klass(1, \"three\");"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "e0a37e9237220e1382c4502fdfbbb4cc10cf04e0..41ab7cb7dc378bf229f7a08f1a03c0676483f435"
|
|
}]
|