1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/constructor-call.json

348 lines
11 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-constructor-call-insert-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
27
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'module.Klass(1, \"two\")' constructor"
2016-10-11 18:12:20 +03:00
}
]
},
"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\");"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "b1ed87edc6bf561edc524058ab781a95970a3258..692f777ed1db0b3284bd2728f6c651425e20ab34"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-constructor-call-replacement-insert-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
29
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'module.Klass(1, \"three\")' constructor"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
27
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'module.Klass(1, \"two\")' constructor"
2016-10-11 18:12:20 +03:00
}
]
},
"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\");"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "692f777ed1db0b3284bd2728f6c651425e20ab34..e4d96364ed5caab5be836020193ea527a6cd6e55"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-constructor-call-delete-insert-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
21
],
"end": [
1,
28
]
},
{
"start": [
1,
21
],
"end": [
1,
26
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the \"three\" string with the \"two\" string in the module.Klass(1, \"two\") method call"
2016-10-11 18:12:20 +03:00
}
]
},
"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\");"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "e4d96364ed5caab5be836020193ea527a6cd6e55..c5f5c7389717f787423d9698a3e0593a965ffbd5"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-constructor-call-replacement-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
21
],
"end": [
1,
26
]
},
{
"start": [
1,
21
],
"end": [
1,
28
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the \"two\" string with the \"three\" string in the module.Klass(1, \"three\") method call"
2016-10-11 18:12:20 +03:00
}
]
},
"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\");"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "c5f5c7389717f787423d9698a3e0593a965ffbd5..d17799b023d4e85c6e1d97220121da96a1323970"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-constructor-call-delete-replacement-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
29
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'module.Klass(1, \"three\")' constructor"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
27
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'module.Klass(1, \"two\")' constructor"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
29
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'module.Klass(1, \"three\")' constructor"
2016-10-11 18:12:20 +03:00
}
]
},
"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\");"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "d17799b023d4e85c6e1d97220121da96a1323970..ddc3d491ed287b5aee714bedf5c2de5ba46770ce"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-constructor-call-delete-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
27
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'module.Klass(1, \"two\")' constructor"
2016-10-11 18:12:20 +03:00
}
]
},
"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\");"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "ddc3d491ed287b5aee714bedf5c2de5ba46770ce..e0a37e9237220e1382c4502fdfbbb4cc10cf04e0"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-constructor-call-delete-rest-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
29
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'module.Klass(1, \"three\")' constructor"
2016-10-11 18:12:20 +03:00
}
]
},
"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\");"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "e0a37e9237220e1382c4502fdfbbb4cc10cf04e0..41ab7cb7dc378bf229f7a08f1a03c0676483f435"
2016-10-11 18:12:20 +03:00
}]