1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00
semantic/test/corpus/diff-summaries/javascript/delete-operator.json
Rob Rix 483e8a3f00 Regenerate all the things!
JavaScript: method call → function call.

Go: regenerated everything.
2017-01-24 15:09:28 -05:00

348 lines
11 KiB
JSON

[{
"testCaseDescription": "javascript-delete-operator-insert-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Added the 'delete thing['prop']' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"patch": [
"diff --git a/delete-operator.js b/delete-operator.js",
"index e69de29b..c83346db 100644",
"--- a/delete-operator.js",
"+++ b/delete-operator.js",
"@@ -0,0 +1 @@",
"+delete thing['prop'];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "40c56c88e1737aa2249e65bf6883ae636953376f..ee79dec332e4b19b503a3ffb045b1a62a316b947"
}
,{
"testCaseDescription": "javascript-delete-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Added the 'delete thing.prop' operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
21
]
}
},
"summary": "Added the 'delete thing['prop']' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"patch": [
"diff --git a/delete-operator.js b/delete-operator.js",
"index c83346db..7c8b9908 100644",
"--- a/delete-operator.js",
"+++ b/delete-operator.js",
"@@ -1 +1,3 @@",
"+delete thing.prop",
"+delete thing['prop'];",
" delete thing['prop'];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "ee79dec332e4b19b503a3ffb045b1a62a316b947..a6f1cfe9edeaf12c99653aeaf65488509b500b4b"
}
,{
"testCaseDescription": "javascript-delete-operator-delete-insert-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
18
]
},
{
"start": [
1,
1
],
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'delete thing.prop' operator with the 'delete thing['prop']' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"patch": [
"diff --git a/delete-operator.js b/delete-operator.js",
"index 7c8b9908..f506e360 100644",
"--- a/delete-operator.js",
"+++ b/delete-operator.js",
"@@ -1,3 +1,3 @@",
"-delete thing.prop",
"+delete thing['prop'];",
" delete thing['prop'];",
" delete thing['prop'];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "a6f1cfe9edeaf12c99653aeaf65488509b500b4b..bc0464b08e597fe9799ba5c4dcd8790cee637929"
}
,{
"testCaseDescription": "javascript-delete-operator-replacement-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
21
]
},
{
"start": [
1,
1
],
"end": [
1,
18
]
}
]
},
"summary": "Replaced the 'delete thing['prop']' operator with the 'delete thing.prop' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"patch": [
"diff --git a/delete-operator.js b/delete-operator.js",
"index f506e360..7c8b9908 100644",
"--- a/delete-operator.js",
"+++ b/delete-operator.js",
"@@ -1,3 +1,3 @@",
"-delete thing['prop'];",
"+delete thing.prop",
" delete thing['prop'];",
" delete thing['prop'];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "bc0464b08e597fe9799ba5c4dcd8790cee637929..c001371459eed13c17e2fde3051831a6186b887e"
}
,{
"testCaseDescription": "javascript-delete-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Deleted the 'delete thing.prop' operator"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
21
]
}
},
"summary": "Deleted the 'delete thing['prop']' operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
18
]
}
},
"summary": "Added the 'delete thing.prop' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"patch": [
"diff --git a/delete-operator.js b/delete-operator.js",
"index 7c8b9908..2dfe0799 100644",
"--- a/delete-operator.js",
"+++ b/delete-operator.js",
"@@ -1,3 +1,2 @@",
"-delete thing.prop",
"-delete thing['prop'];",
" delete thing['prop'];",
"+delete thing.prop"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c001371459eed13c17e2fde3051831a6186b887e..aeacfbd49b5813111cb6d41d23e1eb0333940a73"
}
,{
"testCaseDescription": "javascript-delete-operator-delete-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Deleted the 'delete thing['prop']' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"patch": [
"diff --git a/delete-operator.js b/delete-operator.js",
"index 2dfe0799..9d68dfb8 100644",
"--- a/delete-operator.js",
"+++ b/delete-operator.js",
"@@ -1,2 +1 @@",
"-delete thing['prop'];",
" delete thing.prop"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "aeacfbd49b5813111cb6d41d23e1eb0333940a73..8f89b423be7695216881a3cf0d40c047dc6b820a"
}
,{
"testCaseDescription": "javascript-delete-operator-delete-rest-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Deleted the 'delete thing.prop' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"patch": [
"diff --git a/delete-operator.js b/delete-operator.js",
"index 9d68dfb8..e69de29b 100644",
"--- a/delete-operator.js",
"+++ b/delete-operator.js",
"@@ -1 +0,0 @@",
"-delete thing.prop"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "8f89b423be7695216881a3cf0d40c047dc6b820a..f90555ef6eea69038b7aa16bd074797419738b0a"
}]