mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
372 lines
11 KiB
JSON
372 lines
11 KiB
JSON
[{
|
|
"testCaseDescription": "go-label-statements-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"label-statements.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'insert_label' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"label-statements.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/label-statements.go b/label-statements.go",
|
|
"index e69de29..d0544fe 100644",
|
|
"--- a/label-statements.go",
|
|
"+++ b/label-statements.go",
|
|
"@@ -0,0 +1,3 @@",
|
|
"+{",
|
|
"+ insert_label:",
|
|
"+}"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "c4e6795cad01ceb96441009c3d1712d64702bdad..f50d37a73395964545ed3dc7483a3cee08fab871"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-label-statements-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"label-statements.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'replacement_label' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
3
|
|
],
|
|
"end": [
|
|
5,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'insert_label' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"label-statements.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/label-statements.go b/label-statements.go",
|
|
"index d0544fe..745311d 100644",
|
|
"--- a/label-statements.go",
|
|
"+++ b/label-statements.go",
|
|
"@@ -1,3 +1,9 @@",
|
|
" {",
|
|
"+ replacement_label:",
|
|
"+}",
|
|
"+{",
|
|
"+ insert_label:",
|
|
"+}",
|
|
"+{",
|
|
" insert_label:",
|
|
" }"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "f50d37a73395964545ed3dc7483a3cee08fab871..7c68fc977e79469e083cc5c527602cf508aac58e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-label-statements-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"label-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
20
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
15
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'replacement_label' identifier with the 'insert_label' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"label-statements.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/label-statements.go b/label-statements.go",
|
|
"index 745311d..be34b5c 100644",
|
|
"--- a/label-statements.go",
|
|
"+++ b/label-statements.go",
|
|
"@@ -1,5 +1,5 @@",
|
|
" {",
|
|
"- replacement_label:",
|
|
"+ insert_label:",
|
|
" }",
|
|
" {",
|
|
" insert_label:"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "7c68fc977e79469e083cc5c527602cf508aac58e..cf3536d70a3071a281920f1cf200b25195aa03cf"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-label-statements-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"label-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
20
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'insert_label' identifier with the 'replacement_label' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"label-statements.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/label-statements.go b/label-statements.go",
|
|
"index be34b5c..745311d 100644",
|
|
"--- a/label-statements.go",
|
|
"+++ b/label-statements.go",
|
|
"@@ -1,5 +1,5 @@",
|
|
" {",
|
|
"- insert_label:",
|
|
"+ replacement_label:",
|
|
" }",
|
|
" {",
|
|
" insert_label:"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "cf3536d70a3071a281920f1cf200b25195aa03cf..a7cc9b59627405e60a0ad4aa6ab297e9d10092fa"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-label-statements-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"label-statements.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'replacement_label' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
3
|
|
],
|
|
"end": [
|
|
5,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'insert_label' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
3
|
|
],
|
|
"end": [
|
|
5,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'replacement_label' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"label-statements.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/label-statements.go b/label-statements.go",
|
|
"index 745311d..57f6c03 100644",
|
|
"--- a/label-statements.go",
|
|
"+++ b/label-statements.go",
|
|
"@@ -1,9 +1,6 @@",
|
|
" {",
|
|
"- replacement_label:",
|
|
"-}",
|
|
"-{",
|
|
" insert_label:",
|
|
" }",
|
|
" {",
|
|
"- insert_label:",
|
|
"+ replacement_label:",
|
|
" }"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "a7cc9b59627405e60a0ad4aa6ab297e9d10092fa..23a9bb9bdb73f3601637da02fe0d7a724d4457e9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-label-statements-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"label-statements.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'insert_label' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"label-statements.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/label-statements.go b/label-statements.go",
|
|
"index 57f6c03..6920e65 100644",
|
|
"--- a/label-statements.go",
|
|
"+++ b/label-statements.go",
|
|
"@@ -1,6 +1,3 @@",
|
|
" {",
|
|
"- insert_label:",
|
|
"-}",
|
|
"-{",
|
|
" replacement_label:",
|
|
" }"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "23a9bb9bdb73f3601637da02fe0d7a724d4457e9..8e9f6160b1c18138883fb22c72ba00a50c4b1b73"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-label-statements-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"label-statements.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'replacement_label' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"label-statements.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/label-statements.go b/label-statements.go",
|
|
"index 6920e65..e69de29 100644",
|
|
"--- a/label-statements.go",
|
|
"+++ b/label-statements.go",
|
|
"@@ -1,3 +0,0 @@",
|
|
"-{",
|
|
"- replacement_label:",
|
|
"-}"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "8e9f6160b1c18138883fb22c72ba00a50c4b1b73..5b7b3301375ff5a3c26fc52ca1b4c4b5adf72c36"
|
|
}]
|