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-02 00:07:40 +03:00
|
|
|
"shas": "41708d22031ec005c4e3b41de7fd9cd6a633dfa9..f9b6ee174f36c4becb9fcfad10bdac12343c6aed"
|
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-02 00:07:40 +03:00
|
|
|
"shas": "f9b6ee174f36c4becb9fcfad10bdac12343c6aed..89a8f58ba05995ded78bf9dc18b6f73931d883fc"
|
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-02 00:07:40 +03:00
|
|
|
"shas": "89a8f58ba05995ded78bf9dc18b6f73931d883fc..05b459e96a6cee7b61b16b8026dccbb57827e64b"
|
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-02 00:07:40 +03:00
|
|
|
"shas": "05b459e96a6cee7b61b16b8026dccbb57827e64b..ba280c8b150ab05f0235979a49d626ecd8225f37"
|
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-02 00:07:40 +03:00
|
|
|
"shas": "ba280c8b150ab05f0235979a49d626ecd8225f37..6216047328387ea23a02cd9e07a4b6d0a63115b9"
|
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-02 00:07:40 +03:00
|
|
|
"shas": "6216047328387ea23a02cd9e07a4b6d0a63115b9..8f05de5ea1d8f7447985df554b6b0a8cdf5f007e"
|
2016-11-02 05:05:43 +03:00
|
|
|
}]
|