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

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",
2017-01-17 23:26:07 +03:00
"index e69de29b..79058077 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",
2017-01-18 23:12:54 +03:00
"shas": "f9136e3be46a93bc0e0b6dc467c7b9ced1b97894..d7212f336c9c60b14c59e8e94e1ecd4aede3cc09"
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",
2017-01-17 23:26:07 +03:00
"index 79058077..b0a29697 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",
2017-01-18 23:12:54 +03:00
"shas": "d7212f336c9c60b14c59e8e94e1ecd4aede3cc09..0f74fcb7d75eeebfc2e1a28388fa94535683467b"
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",
2017-01-17 23:26:07 +03:00
"index b0a29697..3d3cf164 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",
2017-01-18 23:12:54 +03:00
"shas": "0f74fcb7d75eeebfc2e1a28388fa94535683467b..a34375d5b52b45a8d48f0540b89d62710a4c6be1"
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",
2017-01-17 23:26:07 +03:00
"index 3d3cf164..b0a29697 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",
2017-01-18 23:12:54 +03:00
"shas": "a34375d5b52b45a8d48f0540b89d62710a4c6be1..60dc5a9a3a91da069f329c5ae369d80c47e9cc42"
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",
2017-01-17 23:26:07 +03:00
"index b0a29697..79058077 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",
2017-01-18 23:12:54 +03:00
"shas": "60dc5a9a3a91da069f329c5ae369d80c47e9cc42..5a07dfd5ebb6f9aac2fc62a67df29e9f002ae2fb"
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",
2017-01-17 23:26:07 +03:00
"index 79058077..e69de29b 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",
2017-01-18 23:12:54 +03:00
"shas": "5a07dfd5ebb6f9aac2fc62a67df29e9f002ae2fb..e8a0a2912cf6fee72c6e0cc0d96c5babf1cd4df1"
2016-11-01 01:22:10 +03:00
}]