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/void-operator.json
2016-11-03 16:02:56 -07:00

348 lines
10 KiB
JSON

[{
"testCaseDescription": "javascript-void-operator-insert-test",
"expectedResult": {
"changes": {
"void-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
9
]
}
},
"summary": "Added the 'void b()' operator"
}
]
},
"errors": {}
},
"filePaths": [
"void-operator.js"
],
"patch": [
"diff --git a/void-operator.js b/void-operator.js",
"index e69de29..02aa750 100644",
"--- a/void-operator.js",
"+++ b/void-operator.js",
"@@ -0,0 +1 @@",
"+void b()"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "56f88d5286e94da2b11b7f6d0a35aa836d4f5921..090251ad4b6d167fb4a8ada452c235f6ef453446"
}
,{
"testCaseDescription": "javascript-void-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"void-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
9
]
}
},
"summary": "Added the 'void c()' operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
9
]
}
},
"summary": "Added the 'void b()' operator"
}
]
},
"errors": {}
},
"filePaths": [
"void-operator.js"
],
"patch": [
"diff --git a/void-operator.js b/void-operator.js",
"index 02aa750..c493dc5 100644",
"--- a/void-operator.js",
"+++ b/void-operator.js",
"@@ -1 +1,3 @@",
"+void c()",
"+void b()",
" void b()"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "090251ad4b6d167fb4a8ada452c235f6ef453446..bf6411aac8dfb3eeb0f991114c7f48b390b61430"
}
,{
"testCaseDescription": "javascript-void-operator-delete-insert-test",
"expectedResult": {
"changes": {
"void-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
7
]
},
{
"start": [
1,
6
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'b' identifier in the b() function call"
}
]
},
"errors": {}
},
"filePaths": [
"void-operator.js"
],
"patch": [
"diff --git a/void-operator.js b/void-operator.js",
"index c493dc5..aae2f63 100644",
"--- a/void-operator.js",
"+++ b/void-operator.js",
"@@ -1,3 +1,3 @@",
"-void c()",
"+void b()",
" void b()",
" void b()"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "bf6411aac8dfb3eeb0f991114c7f48b390b61430..d00f222abddf5191477b57afc4101cf73ee16ec5"
}
,{
"testCaseDescription": "javascript-void-operator-replacement-test",
"expectedResult": {
"changes": {
"void-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
7
]
},
{
"start": [
1,
6
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'c' identifier in the c() function call"
}
]
},
"errors": {}
},
"filePaths": [
"void-operator.js"
],
"patch": [
"diff --git a/void-operator.js b/void-operator.js",
"index aae2f63..c493dc5 100644",
"--- a/void-operator.js",
"+++ b/void-operator.js",
"@@ -1,3 +1,3 @@",
"-void b()",
"+void c()",
" void b()",
" void b()"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d00f222abddf5191477b57afc4101cf73ee16ec5..36271b63277a1739ae109605f2f520baf14525b4"
}
,{
"testCaseDescription": "javascript-void-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"void-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
9
]
}
},
"summary": "Deleted the 'void c()' operator"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
9
]
}
},
"summary": "Deleted the 'void b()' operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
9
]
}
},
"summary": "Added the 'void c()' operator"
}
]
},
"errors": {}
},
"filePaths": [
"void-operator.js"
],
"patch": [
"diff --git a/void-operator.js b/void-operator.js",
"index c493dc5..738c34a 100644",
"--- a/void-operator.js",
"+++ b/void-operator.js",
"@@ -1,3 +1,2 @@",
"-void c()",
"-void b()",
" void b()",
"+void c()"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "36271b63277a1739ae109605f2f520baf14525b4..350bf156c704fb4f26d0ada86678e654d40d70cc"
}
,{
"testCaseDescription": "javascript-void-operator-delete-test",
"expectedResult": {
"changes": {
"void-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
9
]
}
},
"summary": "Deleted the 'void b()' operator"
}
]
},
"errors": {}
},
"filePaths": [
"void-operator.js"
],
"patch": [
"diff --git a/void-operator.js b/void-operator.js",
"index 738c34a..8e9ceba 100644",
"--- a/void-operator.js",
"+++ b/void-operator.js",
"@@ -1,2 +1 @@",
"-void b()",
" void c()"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "350bf156c704fb4f26d0ada86678e654d40d70cc..684600d4371b29448fa610da1a5e4d2d7710c3aa"
}
,{
"testCaseDescription": "javascript-void-operator-delete-rest-test",
"expectedResult": {
"changes": {
"void-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
9
]
}
},
"summary": "Deleted the 'void c()' operator"
}
]
},
"errors": {}
},
"filePaths": [
"void-operator.js"
],
"patch": [
"diff --git a/void-operator.js b/void-operator.js",
"index 8e9ceba..e69de29 100644",
"--- a/void-operator.js",
"+++ b/void-operator.js",
"@@ -1 +0,0 @@",
"-void c()"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "684600d4371b29448fa610da1a5e4d2d7710c3aa..5da04c6d20aa6fdedbc205bf855829ccd10687f3"
}]