1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/go/label-statements.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": "13fa148e00739eba43f10562e024e15d2fc7e5d9..ec940835e3aadb604515bf67c883ca6521cb2d08"
}
,{
"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": "ec940835e3aadb604515bf67c883ca6521cb2d08..5e455b8924d22fe892b8bab4970fc6524c4deefc"
}
,{
"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": "5e455b8924d22fe892b8bab4970fc6524c4deefc..8a5a495c2571e6547c42e532abcb5a9f3aec4024"
}
,{
"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": "8a5a495c2571e6547c42e532abcb5a9f3aec4024..22c8014919ec0c0808de5aad53da258e151ed475"
}
,{
"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": "22c8014919ec0c0808de5aad53da258e151ed475..6cab5df3eecd3e4b9cde037c1d0d63c733be9b25"
}
,{
"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": "6cab5df3eecd3e4b9cde037c1d0d63c733be9b25..66df55101e51883709ed9932d216cb965d9bef49"
}
,{
"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": "66df55101e51883709ed9932d216cb965d9bef49..d2477a592fdd731c7bb7e1b1d1fe4b3b87939257"
}]