mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
348 lines
11 KiB
JSON
348 lines
11 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-string-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'A string with \"double\" quotes' string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/string.js b/string.js",
|
|
"index e69de29..ea5bd42 100644",
|
|
"--- a/string.js",
|
|
"+++ b/string.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+'A string with \"double\" quotes';"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "c1ec2fd690eae01418882f3dbba8b6a5c0c3c2eb..dd9d769102a7c17e08e27bae6e4e070a6677cd7f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'A different string with \"double\" quotes' string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'A string with \"double\" quotes' string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/string.js b/string.js",
|
|
"index ea5bd42..5cef047 100644",
|
|
"--- a/string.js",
|
|
"+++ b/string.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+'A different string with \"double\" quotes';",
|
|
"+'A string with \"double\" quotes';",
|
|
" 'A string with \"double\" quotes';"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "dd9d769102a7c17e08e27bae6e4e070a6677cd7f..6504adbbbbdb0f45a0fba583ccb72ff50cdf8349"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'A different string with \"double\" quotes' string with the 'A string with \"double\" quotes' string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/string.js b/string.js",
|
|
"index 5cef047..7af39a5 100644",
|
|
"--- a/string.js",
|
|
"+++ b/string.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-'A different string with \"double\" quotes';",
|
|
"+'A string with \"double\" quotes';",
|
|
" 'A string with \"double\" quotes';",
|
|
" 'A string with \"double\" quotes';"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "6504adbbbbdb0f45a0fba583ccb72ff50cdf8349..d39f387280812bce0247667978d542ebe0d27bcb"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'A string with \"double\" quotes' string with the 'A different string with \"double\" quotes' string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/string.js b/string.js",
|
|
"index 7af39a5..5cef047 100644",
|
|
"--- a/string.js",
|
|
"+++ b/string.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-'A string with \"double\" quotes';",
|
|
"+'A different string with \"double\" quotes';",
|
|
" 'A string with \"double\" quotes';",
|
|
" 'A string with \"double\" quotes';"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "d39f387280812bce0247667978d542ebe0d27bcb..b2f472510952cefbc5514307177170e71e3599ec"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'A different string with \"double\" quotes' string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'A string with \"double\" quotes' string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'A different string with \"double\" quotes' string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/string.js b/string.js",
|
|
"index 5cef047..8dd4514 100644",
|
|
"--- a/string.js",
|
|
"+++ b/string.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-'A different string with \"double\" quotes';",
|
|
"-'A string with \"double\" quotes';",
|
|
" 'A string with \"double\" quotes';",
|
|
"+'A different string with \"double\" quotes';"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "b2f472510952cefbc5514307177170e71e3599ec..e83edaaa1afe0823f876025cf3b281bf6f6ab951"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'A string with \"double\" quotes' string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/string.js b/string.js",
|
|
"index 8dd4514..95fbde5 100644",
|
|
"--- a/string.js",
|
|
"+++ b/string.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-'A string with \"double\" quotes';",
|
|
" 'A different string with \"double\" quotes';"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "e83edaaa1afe0823f876025cf3b281bf6f6ab951..b00ba4fad86fcb97c8703641c255c5ca427424eb"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'A different string with \"double\" quotes' string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/string.js b/string.js",
|
|
"index 95fbde5..e69de29 100644",
|
|
"--- a/string.js",
|
|
"+++ b/string.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-'A different string with \"double\" quotes';"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "b00ba4fad86fcb97c8703641c255c5ca427424eb..aa6143f1a8ae9ca9b1ee3577121858208df3cce0"
|
|
}]
|