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/send-statements.json

365 lines
11 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",
2016-12-02 00:03:52 +03:00
"index e69de29..7905807 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",
2016-12-07 21:26:31 +03:00
"shas": "7553b0a8ce30d85fad48ce7c9c329110f2d32bfa..cdfd4254f5aaeaa559fc1bb6bcabbdc6d3a1257d"
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
4
]
}
2016-11-02 05:05:43 +03:00
},
2016-12-02 00:03:52 +03:00
"summary": "Added 'foo' identifier in the main function of the 'main' module"
2016-11-11 00:19:53 +03:00
},
{
"span": {
"insert": {
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-11 00:19:53 +03:00
8
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-11 00:19:53 +03:00
9
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added '5' 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",
2016-12-02 00:03:52 +03:00
"index 7905807..5f327d1 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",
2016-12-07 21:26:31 +03:00
"shas": "cdfd4254f5aaeaa559fc1bb6bcabbdc6d3a1257d..40debf804678865e30730a226d5956d0b5d0732a"
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",
2016-12-02 00:03:52 +03:00
"index 5f327d1..3829478 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",
2016-12-07 21:26:31 +03:00
"shas": "40debf804678865e30730a226d5956d0b5d0732a..7e7ac79ce1d12aa91e75ed752d83f2074bcfcf66"
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",
2016-12-02 00:03:52 +03:00
"index 3829478..5f327d1 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",
2016-12-07 21:26:31 +03:00
"shas": "7e7ac79ce1d12aa91e75ed752d83f2074bcfcf66..55ae043dac55f49485f1d2ff298fd7bb8fd38cbb"
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
4
]
}
2016-11-02 05:05:43 +03:00
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted 'foo' identifier in the main function of the 'main' module"
2016-11-11 00:19:53 +03:00
},
{
"span": {
"delete": {
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-11 00:19:53 +03:00
8
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-11 00:19:53 +03:00
9
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted '5' 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",
2016-12-02 00:03:52 +03:00
"index 5f327d1..7905807 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",
2016-12-07 21:26:31 +03:00
"shas": "55ae043dac55f49485f1d2ff298fd7bb8fd38cbb..c80fa932dd9f43d434c08186a1d9029c51beb2da"
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",
2016-12-02 00:03:52 +03:00
"index 7905807..e69de29 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",
2016-12-07 21:26:31 +03:00
"shas": "c80fa932dd9f43d434c08186a1d9029c51beb2da..2d6c82048942922dde54b64455d2c484b2d56287"
2016-11-02 05:05:43 +03:00
}]