1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/go/label-statements.json

372 lines
11 KiB
JSON
Raw Normal View History

2016-11-01 01:22:10 +03:00
[{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-label-statements-insert-test",
2016-11-01 01:22:10 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"label-statements.go": [
2016-11-01 01:22:10 +03:00
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
15
2016-11-01 01:22:10 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'insert_label' identifier"
2016-11-01 01:22:10 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"label-statements.go"
2016-11-01 01:22:10 +03:00
],
2016-11-11 00:19:53 +03:00
"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:",
"+}"
],
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-21 23:47:41 +03:00
"shas": "802b99758686cff8ed2d5aae5bd9a0a4fa80922d..9f9123ca5e76bc2ff62f47893b2701ab77eb5eb8"
2016-11-01 01:22:10 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-label-statements-replacement-insert-test",
2016-11-01 01:22:10 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"label-statements.go": [
2016-11-01 01:22:10 +03:00
{
"span": {
2016-11-11 00:19:53 +03:00
"insert": {
"start": [
2,
3
],
"end": [
2,
20
]
}
},
"summary": "Added the 'replacement_label' identifier"
},
{
"span": {
"insert": {
"start": [
5,
3
],
"end": [
5,
15
]
}
2016-11-01 01:22:10 +03:00
},
2016-11-11 00:19:53 +03:00
"summary": "Added the 'insert_label' identifier"
2016-11-01 01:22:10 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"label-statements.go"
2016-11-01 01:22:10 +03:00
],
2016-11-11 00:19:53 +03:00
"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:",
" }"
],
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-21 23:47:41 +03:00
"shas": "9f9123ca5e76bc2ff62f47893b2701ab77eb5eb8..2cc5f8df48c16dad4bdd01a2c9c1c7caedddba73"
2016-11-01 01:22:10 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-label-statements-delete-insert-test",
2016-11-01 01:22:10 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"label-statements.go": [
2016-11-01 01:22:10 +03:00
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
20
2016-11-01 01:22:10 +03:00
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
15
2016-11-01 01:22:10 +03:00
]
}
]
},
2016-11-02 21:37:30 +03:00
"summary": "Replaced the 'replacement_label' identifier with the 'insert_label' identifier"
2016-11-01 01:22:10 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"label-statements.go"
2016-11-01 01:22:10 +03:00
],
2016-11-11 00:19:53 +03:00
"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:"
],
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-21 23:47:41 +03:00
"shas": "2cc5f8df48c16dad4bdd01a2c9c1c7caedddba73..08af56f1593c50bed274ff76e53536ee747b5acd"
2016-11-01 01:22:10 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-label-statements-replacement-test",
2016-11-01 01:22:10 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"label-statements.go": [
2016-11-01 01:22:10 +03:00
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
15
2016-11-01 01:22:10 +03:00
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
20
2016-11-01 01:22:10 +03:00
]
}
]
},
2016-11-02 21:37:30 +03:00
"summary": "Replaced the 'insert_label' identifier with the 'replacement_label' identifier"
2016-11-01 01:22:10 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"label-statements.go"
2016-11-01 01:22:10 +03:00
],
2016-11-11 00:19:53 +03:00
"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:"
],
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-21 23:47:41 +03:00
"shas": "08af56f1593c50bed274ff76e53536ee747b5acd..f296d18f243e98b9252c911515fbab5f0012c6e4"
2016-11-01 01:22:10 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-label-statements-delete-replacement-test",
2016-11-01 01:22:10 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"label-statements.go": [
2016-11-01 01:22:10 +03:00
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
20
2016-11-01 01:22:10 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'replacement_label' identifier"
2016-11-01 01:22:10 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 21:37:30 +03:00
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 21:37:30 +03:00
15
2016-11-01 01:22:10 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'insert_label' identifier"
2016-11-01 01:22:10 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 21:37:30 +03:00
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 21:37:30 +03:00
20
2016-11-01 01:22:10 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'replacement_label' identifier"
2016-11-01 01:22:10 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"label-statements.go"
2016-11-01 01:22:10 +03:00
],
2016-11-11 00:19:53 +03:00
"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:",
" }"
],
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-21 23:47:41 +03:00
"shas": "f296d18f243e98b9252c911515fbab5f0012c6e4..79e02dc5d2514cbff9dbb405cfc057c478cdffa4"
2016-11-01 01:22:10 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-label-statements-delete-test",
2016-11-01 01:22:10 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"label-statements.go": [
2016-11-01 01:22:10 +03:00
{
"span": {
2016-11-11 00:19:53 +03:00
"delete": {
"start": [
2,
3
],
"end": [
2,
15
]
}
2016-11-01 01:22:10 +03:00
},
2016-11-11 00:19:53 +03:00
"summary": "Deleted the 'insert_label' identifier"
2016-11-01 01:22:10 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"label-statements.go"
2016-11-01 01:22:10 +03:00
],
2016-11-11 00:19:53 +03:00
"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:",
" }"
],
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-21 23:47:41 +03:00
"shas": "79e02dc5d2514cbff9dbb405cfc057c478cdffa4..a2826334b98aca6598218b6871016aa8563833a0"
2016-11-01 01:22:10 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-label-statements-delete-rest-test",
2016-11-01 01:22:10 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"label-statements.go": [
2016-11-01 01:22:10 +03:00
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
20
2016-11-01 01:22:10 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'replacement_label' identifier"
2016-11-01 01:22:10 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"label-statements.go"
2016-11-01 01:22:10 +03:00
],
2016-11-11 00:19:53 +03:00
"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:",
"-}"
],
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-21 23:47:41 +03:00
"shas": "a2826334b98aca6598218b6871016aa8563833a0..42dc8743d2a73af66d7be7b16505b0a2882559ba"
2016-11-01 01:22:10 +03:00
}]