2016-11-02 17:50:05 +03:00
|
|
|
[{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-float-literals-setup-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"float-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
|
|
|
1
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'main' module"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"float-literals.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/float-literals.go b/float-literals.go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"index e69de29..7905807 100644",
|
2016-12-02 00:03:52 +03:00
|
|
|
"--- a/float-literals.go",
|
|
|
|
"+++ b/float-literals.go",
|
|
|
|
"@@ -0,0 +1,5 @@",
|
|
|
|
"+package main",
|
|
|
|
"+",
|
|
|
|
"+func main() {",
|
|
|
|
"+",
|
|
|
|
"+}"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"shas": "0a40b22c43aa00db120bff03da0f027e53466491..d77c4e05633ee6f1744f76452e92686b56c4df1d"
|
2016-12-02 00:03:52 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-float-literals-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"float-literals.go": [
|
2016-11-11 00:19:53 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
|
|
|
1
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-11 00:19:53 +03:00
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Added the 'f1' var assignment 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
|
|
|
5,
|
2016-11-11 00:19:53 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-11 00:19:53 +03:00
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Added the 'f2' var assignment 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
|
|
|
6,
|
2016-11-11 00:19:53 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-11 00:19:53 +03:00
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Added the 'f3' var assignment 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
|
|
|
7,
|
2016-11-11 00:19:53 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
7,
|
2016-11-11 00:19:53 +03:00
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Added the 'f4' var assignment 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
|
|
|
8,
|
2016-11-11 00:19:53 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
8,
|
2016-11-11 00:19:53 +03:00
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Added the 'f5' var assignment in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"float-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/float-literals.go b/float-literals.go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"index 7905807..772bdb0 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/float-literals.go",
|
|
|
|
"+++ b/float-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,5 +1,9 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
|
|
|
"-",
|
2016-11-11 00:19:53 +03:00
|
|
|
"+f1 = 1.5",
|
|
|
|
"+f2 = 1.5e100",
|
|
|
|
"+f3 = 1.5e+50",
|
|
|
|
"+f4 = 1.5e-5",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+f5 = .5e-50",
|
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"shas": "d77c4e05633ee6f1744f76452e92686b56c4df1d..c08ec5374def53e17f4248246425d6a7e2e68fe8"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-float-literals-replacement-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"float-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Replaced the '1.5' float with the '2.6' float in the f1 var assignment of the 'main' function"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Replaced the '1.5e100' float with the '2.6e211' float in the f2 var assignment of the 'main' function"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Replaced the '1.5e+50' float with the '2.6e+60' float in the f3 var assignment of the 'main' function"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Replaced the '1.5e-5' float with the '2.6e-7' float in the f4 var assignment of the 'main' function"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Replaced the '.5e-50' float with the '.6e-60' float in the f5 var assignment of the 'main' function"
|
2016-12-02 00:03:52 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"float-literals.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/float-literals.go b/float-literals.go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"index 772bdb0..0818628 100644",
|
2016-12-02 00:03:52 +03:00
|
|
|
"--- a/float-literals.go",
|
|
|
|
"+++ b/float-literals.go",
|
|
|
|
"@@ -1,9 +1,9 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
|
|
|
"-f1 = 1.5",
|
|
|
|
"-f2 = 1.5e100",
|
|
|
|
"-f3 = 1.5e+50",
|
|
|
|
"-f4 = 1.5e-5",
|
|
|
|
"-f5 = .5e-50",
|
|
|
|
"+f1 = 2.6",
|
|
|
|
"+f2 = 2.6e211",
|
|
|
|
"+f3 = 2.6e+60",
|
|
|
|
"+f4 = 2.6e-7",
|
|
|
|
"+f5 = .6e-60",
|
|
|
|
" }"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"shas": "c08ec5374def53e17f4248246425d6a7e2e68fe8..94552c782af44c22df35ede9b51494b6f34d91a1"
|
2016-12-02 00:03:52 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-float-literals-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"float-literals.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 17:50:05 +03:00
|
|
|
9
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Replaced the '2.6' float with the '1.5' float in the f1 var assignment of the 'main' function"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
13
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Replaced the '2.6e211' float with the '1.5e100' float in the f2 var assignment of the 'main' function"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Replaced the '2.6e+60' float with the '1.5e+50' float in the f3 var assignment of the 'main' function"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Replaced the '2.6e-7' float with the '1.5e-5' float in the f4 var assignment of the 'main' function"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Replaced the '.6e-60' float with the '.5e-50' float in the f5 var assignment of the 'main' function"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"float-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/float-literals.go b/float-literals.go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"index 0818628..772bdb0 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/float-literals.go",
|
|
|
|
"+++ b/float-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,9 +1,9 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
|
|
|
"-f1 = 2.6",
|
|
|
|
"-f2 = 2.6e211",
|
|
|
|
"-f3 = 2.6e+60",
|
|
|
|
"-f4 = 2.6e-7",
|
|
|
|
"-f5 = .6e-60",
|
|
|
|
"+f1 = 1.5",
|
|
|
|
"+f2 = 1.5e100",
|
|
|
|
"+f3 = 1.5e+50",
|
|
|
|
"+f4 = 1.5e-5",
|
|
|
|
"+f5 = .5e-50",
|
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"shas": "94552c782af44c22df35ede9b51494b6f34d91a1..3f878796d9f18bf596a4d2383fde21338ceb6c56"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-float-literals-delete-insert-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"float-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 17:50:05 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 17:50:05 +03:00
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Deleted the 'f1' var assignment in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Deleted the 'f2' var assignment in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-02 17:50:05 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-02 17:50:05 +03:00
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Deleted the 'f3' var assignment in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Deleted the 'f4' var assignment in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
8,
|
2016-11-02 17:50:05 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
8,
|
2016-11-02 17:50:05 +03:00
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Deleted the 'f5' var assignment in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"float-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/float-literals.go b/float-literals.go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"index 772bdb0..7905807 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/float-literals.go",
|
|
|
|
"+++ b/float-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,9 +1,5 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-11 00:19:53 +03:00
|
|
|
"-f1 = 1.5",
|
|
|
|
"-f2 = 1.5e100",
|
|
|
|
"-f3 = 1.5e+50",
|
|
|
|
"-f4 = 1.5e-5",
|
|
|
|
"-f5 = .5e-50",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+",
|
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"shas": "3f878796d9f18bf596a4d2383fde21338ceb6c56..73cc68077f44fc2d622f9eec169f48a8212d6ee0"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-float-literals-teardown-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"float-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-11 00:19:53 +03:00
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"float-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/float-literals.go b/float-literals.go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"index 7905807..e69de29 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/float-literals.go",
|
|
|
|
"+++ b/float-literals.go",
|
|
|
|
"@@ -1,5 +0,0 @@",
|
2016-12-02 00:03:52 +03:00
|
|
|
"-package main",
|
|
|
|
"-",
|
|
|
|
"-func main() {",
|
|
|
|
"-",
|
|
|
|
"-}"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"shas": "73cc68077f44fc2d622f9eec169f48a8212d6ee0..d5f24adbbe5ff125bd4556844ca38a028a26c1d9"
|
2016-11-02 17:50:05 +03:00
|
|
|
}]
|