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 02:55:59 +03:00
|
|
|
"shas": "bf6e7ab0be32b77a6e7223e2b14b16866780d818..8b2e8e94e635b9a4144532d993c3d282e2be6c2f"
|
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 02:55:59 +03:00
|
|
|
"shas": "8b2e8e94e635b9a4144532d993c3d282e2be6c2f..adaa6e831fd18b878885ce6fe8fccf9f6c355b96"
|
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 02:55:59 +03:00
|
|
|
"shas": "adaa6e831fd18b878885ce6fe8fccf9f6c355b96..6ffa6d51c1cd22d41acc158913ccb6bedeedd422"
|
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 02:55:59 +03:00
|
|
|
"shas": "6ffa6d51c1cd22d41acc158913ccb6bedeedd422..8f630ac0abe7b8c3dfb30187911fb092faa95787"
|
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 02:55:59 +03:00
|
|
|
"shas": "8f630ac0abe7b8c3dfb30187911fb092faa95787..cd7ca92b478c22c44cae349a5a1261de41b92402"
|
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 02:55:59 +03:00
|
|
|
"shas": "cd7ca92b478c22c44cae349a5a1261de41b92402..edf0d8cd9ef0ae501b6c82f372c69497aab67ea7"
|
2016-11-02 05:05:43 +03:00
|
|
|
}]
|