1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00
semantic/test/corpus/diff-summaries/go/label-statements.json

287 lines
8.5 KiB
JSON
Raw Normal View History

2016-11-01 01:22:10 +03:00
[{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-label-statements-setup-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-12-02 00:03:52 +03:00
1,
1
2016-11-01 01:22:10 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
6,
1
2016-11-01 01:22:10 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'main' module"
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",
2016-12-02 00:03:52 +03:00
"index e69de29..7905807 100644",
2016-11-11 00:19:53 +03:00
"--- a/label-statements.go",
"+++ b/label-statements.go",
2016-12-02 00:03:52 +03:00
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
2016-11-11 00:19:53 +03:00
"+}"
],
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-12-08 00:12:58 +03:00
"shas": "d4f6d3095efbbce722051ecd584ad6a654426d8c..0a2dc09d2ac872115cca2dde67e570826f0ee384"
2016-11-01 01:22:10 +03:00
}
,{
2016-12-02 00:03:52 +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-11 00:19:53 +03:00
{
"span": {
"insert": {
"start": [
5,
3
],
"end": [
5,
15
]
}
2016-11-01 01:22:10 +03:00
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'insert_label' identifier in the main function of the 'main' module"
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",
2016-12-02 00:03:52 +03:00
"index 7905807..b0a2969 100644",
2016-11-11 00:19:53 +03:00
"--- a/label-statements.go",
"+++ b/label-statements.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,7 @@",
" package main",
" ",
" func main() {",
"-",
2016-11-11 00:19:53 +03:00
"+{",
"+ insert_label:",
"+}",
" }"
],
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-12-08 00:12:58 +03:00
"shas": "0a2dc09d2ac872115cca2dde67e570826f0ee384..1882ac188f1aabfb0cd2ebe0afb7835bb7b08829"
2016-11-01 01:22:10 +03:00
}
,{
2016-12-02 00:03:52 +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-12-02 00:03:52 +03:00
5,
2016-11-02 21:37:30 +03:00
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
5,
15
2016-11-01 01:22:10 +03:00
]
},
{
"start": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 21:37:30 +03:00
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
5,
20
2016-11-01 01:22:10 +03:00
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'insert_label' identifier with the 'replacement_label' identifier in the main function of the 'main' module"
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",
2016-12-02 00:03:52 +03:00
"index b0a2969..3d3cf16 100644",
2016-11-11 00:19:53 +03:00
"--- a/label-statements.go",
"+++ b/label-statements.go",
2016-12-02 00:03:52 +03:00
"@@ -2,6 +2,6 @@ package main",
" ",
" func main() {",
2016-11-11 00:19:53 +03:00
" {",
2016-12-02 00:03:52 +03:00
"- insert_label:",
"+ replacement_label:",
2016-11-11 00:19:53 +03:00
" }",
2016-12-02 00:03:52 +03:00
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-12-08 00:12:58 +03:00
"shas": "1882ac188f1aabfb0cd2ebe0afb7835bb7b08829..eeeb061c524890b2093642f0d167dc73287909f0"
2016-11-01 01:22:10 +03:00
}
,{
2016-12-02 00:03:52 +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": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 21:37:30 +03:00
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
5,
20
2016-11-01 01:22:10 +03:00
]
},
{
"start": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 21:37:30 +03:00
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
5,
15
2016-11-01 01:22:10 +03:00
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'replacement_label' identifier with the 'insert_label' identifier in the main function of the 'main' module"
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",
2016-12-02 00:03:52 +03:00
"index 3d3cf16..b0a2969 100644",
2016-11-11 00:19:53 +03:00
"--- a/label-statements.go",
"+++ b/label-statements.go",
2016-12-02 00:03:52 +03:00
"@@ -2,6 +2,6 @@ package main",
" ",
" func main() {",
2016-11-11 00:19:53 +03:00
" {",
2016-12-02 00:03:52 +03:00
"- replacement_label:",
"+ insert_label:",
2016-11-11 00:19:53 +03:00
" }",
2016-12-02 00:03:52 +03:00
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-12-08 00:12:58 +03:00
"shas": "eeeb061c524890b2093642f0d167dc73287909f0..704300d6dfe3b14be420058da2880debc6cf230a"
2016-11-01 01:22:10 +03:00
}
,{
2016-12-02 00:03:52 +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": {
"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-12-02 00:03:52 +03:00
"summary": "Deleted the 'insert_label' identifier in the main function of the 'main' module"
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",
2016-12-02 00:03:52 +03:00
"index b0a2969..7905807 100644",
2016-11-11 00:19:53 +03:00
"--- a/label-statements.go",
"+++ b/label-statements.go",
2016-12-02 00:03:52 +03:00
"@@ -1,7 +1,5 @@",
" package main",
" ",
" func main() {",
2016-11-11 00:19:53 +03:00
"-{",
"- insert_label:",
"-}",
2016-12-02 00:03:52 +03:00
"+",
2016-11-11 00:19:53 +03:00
" }"
],
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-12-08 00:12:58 +03:00
"shas": "704300d6dfe3b14be420058da2880debc6cf230a..9f325ac561934e124c5e5531682ee5f6f796bc40"
2016-11-01 01:22:10 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-label-statements-teardown-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-12-02 00:03:52 +03:00
1,
1
2016-11-01 01:22:10 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
6,
1
2016-11-01 01:22:10 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'main' module"
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",
2016-12-02 00:03:52 +03:00
"index 7905807..e69de29 100644",
2016-11-11 00:19:53 +03:00
"--- a/label-statements.go",
"+++ b/label-statements.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
2016-11-11 00:19:53 +03:00
"-}"
],
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-12-08 00:12:58 +03:00
"shas": "9f325ac561934e124c5e5531682ee5f6f796bc40..695dc8f6eadde4811f068db1566ef6445fb5a7d8"
2016-11-01 01:22:10 +03:00
}]