1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/go/float-literals.json

701 lines
22 KiB
JSON
Raw Normal View History

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": [
1,
13
2016-11-11 00:19:53 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added 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-17 23:26:07 +03:00
"index e69de29b..79058077 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",
"shas": "6ea06aa1e8431651d63087d1f623f409947a25f1..a03d106f4668e2d39bf52c3e278b68cf682165b1"
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
]
}
},
"summary": "Added the 'f1' assignment in the main function"
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
]
}
},
"summary": "Added the 'f2' assignment in the main function"
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
]
}
},
"summary": "Added the 'f3' assignment in the main function"
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
]
}
},
"summary": "Added the 'f4' assignment in the main function"
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
]
}
},
"summary": "Added the 'f5' assignment in 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-17 23:26:07 +03:00
"index 79058077..772bdb09 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",
"shas": "a03d106f4668e2d39bf52c3e278b68cf682165b1..841ab7a1e0173f62bcb428551152d9d47f123025"
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": {
"insert": {
"start": [
4,
1
],
"end": [
4,
9
]
}
},
"summary": "Added the 'f1' assignment in the main function"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
13
]
}
},
"summary": "Added the 'f2' assignment in the main function"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
13
]
}
},
"summary": "Added the 'f3' assignment in the main function"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
12
]
}
},
"summary": "Added the 'f4' assignment in the main function"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
12
]
}
},
"summary": "Added the 'f5' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
9
]
}
},
"summary": "Deleted the 'f1' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
13
]
}
},
"summary": "Deleted the 'f2' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
13
]
}
},
"summary": "Deleted the 'f3' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
12
]
}
},
"summary": "Deleted the 'f4' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
12
]
}
},
"summary": "Deleted the 'f5' assignment in 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-17 23:26:07 +03:00
"index 772bdb09..0818628b 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",
"shas": "841ab7a1e0173f62bcb428551152d9d47f123025..5e8653295137112c6645a93a98308e0c690247b7"
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": {
"insert": {
"start": [
4,
1
],
"end": [
4,
9
]
}
},
"summary": "Added the 'f1' assignment in the main function"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
13
]
}
},
"summary": "Added the 'f2' assignment in the main function"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
13
]
}
},
"summary": "Added the 'f3' assignment in the main function"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
12
]
}
},
"summary": "Added the 'f4' assignment in the main function"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
12
]
}
},
"summary": "Added the 'f5' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
9
]
}
},
"summary": "Deleted the 'f1' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
13
]
}
},
"summary": "Deleted the 'f2' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
13
]
}
},
"summary": "Deleted the 'f3' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
12
]
}
},
"summary": "Deleted the 'f4' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
12
]
}
},
"summary": "Deleted the 'f5' assignment in 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-17 23:26:07 +03:00
"index 0818628b..772bdb09 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",
"shas": "5e8653295137112c6645a93a98308e0c690247b7..371f187f2f1bf7fb9a1feff41ea8d1d6c4d3e25e"
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
]
}
},
"summary": "Deleted the 'f1' assignment in the main function"
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
]
}
},
"summary": "Deleted the 'f2' assignment in the main function"
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
]
}
},
"summary": "Deleted the 'f3' assignment in the main function"
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
]
}
},
"summary": "Deleted the 'f4' assignment in the main function"
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
]
}
},
"summary": "Deleted the 'f5' assignment in 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-17 23:26:07 +03:00
"index 772bdb09..79058077 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",
"shas": "371f187f2f1bf7fb9a1feff41ea8d1d6c4d3e25e..e1f25ce6d6735b3b0590d3cf21f59bb32675ff2d"
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": [
1,
13
2016-11-11 00:19:53 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted 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-17 23:26:07 +03:00
"index 79058077..e69de29b 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",
"shas": "e1f25ce6d6735b3b0590d3cf21f59bb32675ff2d..663f0278d8c41aca54ae0d1849efc76213f9ba1f"
2016-11-02 17:50:05 +03:00
}]