1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/go/send-statements.json

335 lines
10 KiB
JSON
Raw Normal View History

2016-11-02 05:05:43 +03:00
[{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-send-statements-setup-test",
2016-11-02 05:05:43 +03:00
"expectedResult": {
2016-11-02 21:37:30 +03:00
"changes": {
"send-statements.go": [
2016-11-02 05:05:43 +03:00
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 05:05:43 +03:00
1
],
"end": [
2016-12-02 00:03:52 +03:00
6,
1
2016-11-02 05:05:43 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'main' module"
2016-11-02 21:37:30 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
2017-01-17 23:26:07 +03:00
"index e69de29b..79058077 100644",
2016-11-11 00:19:53 +03:00
"--- a/send-statements.go",
"+++ b/send-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-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 01:31:09 +03:00
"shas": "d8288510ceaacf1930d35db32859393201b344ce..d100c5d9511269a1e8d3569ef54bfa4276d0083a"
2016-11-02 21:37:30 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-send-statements-insert-test",
2016-11-02 21:37:30 +03:00
"expectedResult": {
"changes": {
"send-statements.go": [
2016-11-02 05:05:43 +03:00
{
"span": {
2016-11-11 00:19:53 +03:00
"insert": {
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-11 00:19:53 +03:00
1
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-11 00:19:53 +03:00
9
]
}
},
2017-01-17 23:26:07 +03:00
"summary": "Added the 'foo <- 5' send statement in the main function of the 'main' module"
2016-11-02 05:05:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 05:05:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"send-statements.go"
2016-11-02 05:05:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
2017-01-17 23:26:07 +03:00
"index 79058077..5f327d16 100644",
2016-11-11 00:19:53 +03:00
"--- a/send-statements.go",
"+++ b/send-statements.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
2016-11-11 00:19:53 +03:00
"+foo <- 5",
2016-12-02 00:03:52 +03:00
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 01:31:09 +03:00
"shas": "d100c5d9511269a1e8d3569ef54bfa4276d0083a..b314fda72fb7d30e2e19d65ccd5c42ea0cdc6e71"
2016-11-02 05:05:43 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-send-statements-replacement-test",
2016-11-02 05:05:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"send-statements.go": [
2016-11-02 05:05:43 +03:00
{
"span": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
1
2016-11-02 05:05:43 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
4
2016-11-02 05:05:43 +03:00
]
},
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
1
2016-11-02 05:05:43 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
4
2016-11-02 05:05:43 +03:00
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'foo' identifier with the 'bar' identifier in the main function of the 'main' module"
2016-11-02 05:05:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
8
2016-11-02 05:05:43 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
9
2016-11-02 05:05:43 +03:00
]
},
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
8
2016-11-02 05:05:43 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
9
2016-11-02 05:05:43 +03:00
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced '5' with '6' in the main function of the 'main' module"
2016-11-02 05:05:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"send-statements.go"
2016-11-02 05:05:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
2017-01-17 23:26:07 +03:00
"index 5f327d16..3829478b 100644",
2016-11-11 00:19:53 +03:00
"--- a/send-statements.go",
"+++ b/send-statements.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-foo <- 5",
"+bar <- 6",
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 01:31:09 +03:00
"shas": "b314fda72fb7d30e2e19d65ccd5c42ea0cdc6e71..1c9db26f9fe2496b59dff63177e3c58ec3e6ed3f"
2016-11-02 05:05:43 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-send-statements-delete-replacement-test",
2016-11-02 05:05:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"send-statements.go": [
2016-11-02 05:05:43 +03:00
{
"span": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
1
2016-11-02 05:05:43 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
4
2016-11-02 05:05:43 +03:00
]
},
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
1
2016-11-02 05:05:43 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
4
2016-11-02 05:05:43 +03:00
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'bar' identifier with the 'foo' identifier in the main function of the 'main' module"
2016-11-02 05:05:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
8
2016-11-02 05:05:43 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
9
2016-11-02 05:05:43 +03:00
]
},
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
8
2016-11-02 05:05:43 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
9
2016-11-02 05:05:43 +03:00
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced '6' with '5' in the main function of the 'main' module"
2016-11-02 05:05:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"send-statements.go"
2016-11-02 05:05:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
2017-01-17 23:26:07 +03:00
"index 3829478b..5f327d16 100644",
2016-11-11 00:19:53 +03:00
"--- a/send-statements.go",
"+++ b/send-statements.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
2016-11-11 00:19:53 +03:00
"-bar <- 6",
2016-12-02 00:03:52 +03:00
"+foo <- 5",
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 01:31:09 +03:00
"shas": "1c9db26f9fe2496b59dff63177e3c58ec3e6ed3f..17daa3578e9f892f45cbc4dd26b8ff5ad1198b12"
2016-11-02 05:05:43 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-send-statements-delete-insert-test",
2016-11-02 05:05:43 +03:00
"expectedResult": {
2016-11-02 21:37:30 +03:00
"changes": {
"send-statements.go": [
2016-11-02 05:05:43 +03:00
{
"span": {
2016-11-11 00:19:53 +03:00
"delete": {
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-11 00:19:53 +03:00
1
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-11 00:19:53 +03:00
9
]
}
},
2017-01-17 23:26:07 +03:00
"summary": "Deleted the 'foo <- 5' send statement in the main function of the 'main' module"
2016-11-02 05:05:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 05:05:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"send-statements.go"
2016-11-02 05:05:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
2017-01-17 23:26:07 +03:00
"index 5f327d16..79058077 100644",
2016-11-11 00:19:53 +03:00
"--- a/send-statements.go",
"+++ b/send-statements.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
2016-11-11 00:19:53 +03:00
"-foo <- 5",
2016-12-02 00:03:52 +03:00
"+",
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 01:31:09 +03:00
"shas": "17daa3578e9f892f45cbc4dd26b8ff5ad1198b12..b5d9c9f331089b993dc8ed64710449b55967e336"
2016-11-02 05:05:43 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-send-statements-teardown-test",
2016-11-02 05:05:43 +03:00
"expectedResult": {
2016-11-02 21:37:30 +03:00
"changes": {
"send-statements.go": [
2016-11-02 05:05:43 +03:00
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 05:05:43 +03:00
1
],
"end": [
2016-12-02 00:03:52 +03:00
6,
1
2016-11-02 05:05:43 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'main' module"
2016-11-02 05:05:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 05:05:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"send-statements.go"
2016-11-02 05:05:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
2017-01-17 23:26:07 +03:00
"index 79058077..e69de29b 100644",
2016-11-11 00:19:53 +03:00
"--- a/send-statements.go",
"+++ b/send-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-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 01:31:09 +03:00
"shas": "b5d9c9f331089b993dc8ed64710449b55967e336..5911508d26acdd101bc8f326a20fb66f25b49fb6"
2016-11-02 05:05:43 +03:00
}]