mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +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": "802b99758686cff8ed2d5aae5bd9a0a4fa80922d..9f9123ca5e76bc2ff62f47893b2701ab77eb5eb8"
|
|
}
|
|
,{
|
|
"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": "9f9123ca5e76bc2ff62f47893b2701ab77eb5eb8..2cc5f8df48c16dad4bdd01a2c9c1c7caedddba73"
|
|
}
|
|
,{
|
|
"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": "2cc5f8df48c16dad4bdd01a2c9c1c7caedddba73..08af56f1593c50bed274ff76e53536ee747b5acd"
|
|
}
|
|
,{
|
|
"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": "08af56f1593c50bed274ff76e53536ee747b5acd..f296d18f243e98b9252c911515fbab5f0012c6e4"
|
|
}
|
|
,{
|
|
"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": "f296d18f243e98b9252c911515fbab5f0012c6e4..79e02dc5d2514cbff9dbb405cfc057c478cdffa4"
|
|
}
|
|
,{
|
|
"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": "79e02dc5d2514cbff9dbb405cfc057c478cdffa4..a2826334b98aca6598218b6871016aa8563833a0"
|
|
}
|
|
,{
|
|
"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": "a2826334b98aca6598218b6871016aa8563833a0..42dc8743d2a73af66d7be7b16505b0a2882559ba"
|
|
}]
|