mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
165 lines
4.4 KiB
JSON
165 lines
4.4 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-comment-insert-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comment.js b/comment.js",
|
|
"index e69de29..a5821d2 100644",
|
|
"--- a/comment.js",
|
|
"+++ b/comment.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+// This is a property"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "81bc4513ad3979452e9e95586a5fbc9ca66eeadc..522a93132b55605393a0f7a5421f3d1f7b0d4a8c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comment-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comment.js b/comment.js",
|
|
"index a5821d2..761aa7a 100644",
|
|
"--- a/comment.js",
|
|
"+++ b/comment.js",
|
|
"@@ -1 +1,5 @@",
|
|
"+/*",
|
|
"+ * This is a method",
|
|
"+*/",
|
|
"+// This is a property",
|
|
" // This is a property"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "522a93132b55605393a0f7a5421f3d1f7b0d4a8c..f0aa09e8712b14d61160b16073cac5fbd0276038"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comment-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comment.js b/comment.js",
|
|
"index 761aa7a..3b33406 100644",
|
|
"--- a/comment.js",
|
|
"+++ b/comment.js",
|
|
"@@ -1,5 +1,3 @@",
|
|
"-/*",
|
|
"- * This is a method",
|
|
"-*/",
|
|
"+// This is a property",
|
|
" // This is a property",
|
|
" // This is a property"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "f0aa09e8712b14d61160b16073cac5fbd0276038..9402b254de81dabcddcbd6d7308911822b6f0f59"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comment-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comment.js b/comment.js",
|
|
"index 3b33406..761aa7a 100644",
|
|
"--- a/comment.js",
|
|
"+++ b/comment.js",
|
|
"@@ -1,3 +1,5 @@",
|
|
"-// This is a property",
|
|
"+/*",
|
|
"+ * This is a method",
|
|
"+*/",
|
|
" // This is a property",
|
|
" // This is a property"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "9402b254de81dabcddcbd6d7308911822b6f0f59..ba788116c40403584cd03df9976350810a9b1162"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comment-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comment.js b/comment.js",
|
|
"index 761aa7a..c2a8148 100644",
|
|
"--- a/comment.js",
|
|
"+++ b/comment.js",
|
|
"@@ -1,5 +1,4 @@",
|
|
"+// This is a property",
|
|
" /*",
|
|
" * This is a method",
|
|
" */",
|
|
"-// This is a property",
|
|
"-// This is a property"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "ba788116c40403584cd03df9976350810a9b1162..05a2041be1630b8a7309163d4b863cd8966adbe0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comment-delete-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comment.js b/comment.js",
|
|
"index c2a8148..7c74dcd 100644",
|
|
"--- a/comment.js",
|
|
"+++ b/comment.js",
|
|
"@@ -1,4 +1,3 @@",
|
|
"-// This is a property",
|
|
" /*",
|
|
" * This is a method",
|
|
" */"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "05a2041be1630b8a7309163d4b863cd8966adbe0..28ae9fb48ab99b60a709d3168a82f53017fa27a0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comment-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comment.js b/comment.js",
|
|
"index 7c74dcd..e69de29 100644",
|
|
"--- a/comment.js",
|
|
"+++ b/comment.js",
|
|
"@@ -1,3 +0,0 @@",
|
|
"-/*",
|
|
"- * This is a method",
|
|
"-*/"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "28ae9fb48ab99b60a709d3168a82f53017fa27a0..8f7edd21ecef61769b82fb5a60a881f31ce30a01"
|
|
}]
|