1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/go/float-literals.json

1966 lines
62 KiB
JSON
Raw Normal View History

2016-11-02 17:50:05 +03:00
[{
"testCaseDescription": "go-float-literals-insert-test",
"expectedResult": {
"changes": {
"float-literals.go": [
{
"span": {
2016-11-11 00:19:53 +03:00
"insert": {
"start": [
1,
1
],
"end": [
1,
3
]
}
},
"summary": "Added the 'f1' identifier"
},
{
"span": {
"insert": {
"start": [
1,
6
],
"end": [
1,
9
]
}
},
"summary": "Added the '1.5' float_literal"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
3
]
}
},
"summary": "Added the 'f2' identifier"
},
{
"span": {
"insert": {
"start": [
2,
6
],
"end": [
2,
13
]
}
},
"summary": "Added the '1.5e100' float_literal"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
3
]
}
},
"summary": "Added the 'f3' identifier"
},
{
"span": {
"insert": {
"start": [
3,
6
],
"end": [
3,
13
]
}
},
"summary": "Added the '1.5e+50' float_literal"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
3
]
}
2016-11-02 17:50:05 +03:00
},
2016-11-11 00:19:53 +03:00
"summary": "Added the 'f4' identifier"
},
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
12
]
}
},
"summary": "Added the '1.5e-5' float_literal"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
3
]
}
},
"summary": "Added the 'f5' identifier"
},
{
"span": {
"insert": {
"start": [
5,
6
],
"end": [
5,
12
]
}
},
"summary": "Added the '.5e-50' float_literal"
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",
"index e69de29..60df0eb 100644",
"--- a/float-literals.go",
"+++ b/float-literals.go",
"@@ -0,0 +1,5 @@",
"+f1 = 1.5",
"+f2 = 1.5e100",
"+f3 = 1.5e+50",
"+f4 = 1.5e-5",
"+f5 = .5e-50"
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-22 21:51:11 +03:00
"shas": "944bcc3c0cffd2f265b73fa6d03543579ef02d24..542aaed2eccf682e9342b3bc6521179bc86cb766"
2016-11-02 17:50:05 +03:00
}
,{
"testCaseDescription": "go-float-literals-replacement-insert-test",
"expectedResult": {
"changes": {
"float-literals.go": [
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f2' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
9
]
}
},
"summary": "Added the '1.5' float_literal"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f3' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
13
]
}
},
"summary": "Added the '1.5e100' float_literal"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f4' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
13
]
}
},
"summary": "Added the '1.5e+50' float_literal"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f5' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Added the '1.5e-5' float_literal"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f6' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Added the '.5e-50' float_literal"
},
{
"span": {
2016-11-02 18:07:06 +03:00
"insert": {
2016-11-02 17:50:05 +03:00
"start": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 17:50:05 +03:00
3
]
}
},
2016-11-02 18:07:06 +03:00
"summary": "Added the 'f1' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 18:07:06 +03:00
"insert": {
2016-11-02 17:50:05 +03:00
"start": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 17:50:05 +03:00
9
]
}
},
2016-11-02 18:07:06 +03:00
"summary": "Added the '1.5' float_literal"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 18:07:06 +03:00
"insert": {
2016-11-02 17:50:05 +03:00
"start": [
2016-11-11 00:19:53 +03:00
7,
2016-11-02 18:07:06 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
7,
2016-11-02 18:07:06 +03:00
3
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 18:07:06 +03:00
"summary": "Added the 'f2' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 18:07:06 +03:00
"insert": {
2016-11-02 17:50:05 +03:00
"start": [
2016-11-11 00:19:53 +03:00
7,
2016-11-02 18:07:06 +03:00
6
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
7,
2016-11-02 18:07:06 +03:00
13
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 18:07:06 +03:00
"summary": "Added the '1.5e100' float_literal"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 18:07:06 +03:00
"insert": {
2016-11-02 17:50:05 +03:00
"start": [
2016-11-11 00:19:53 +03:00
8,
2016-11-02 18:07:06 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
8,
2016-11-02 18:07:06 +03:00
3
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 18:07:06 +03:00
"summary": "Added the 'f3' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 18:07:06 +03:00
"insert": {
2016-11-02 17:50:05 +03:00
"start": [
2016-11-11 00:19:53 +03:00
8,
2016-11-02 18:07:06 +03:00
6
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
8,
2016-11-02 18:07:06 +03:00
13
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 18:07:06 +03:00
"summary": "Added the '1.5e+50' float_literal"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 18:07:06 +03:00
"insert": {
2016-11-02 17:50:05 +03:00
"start": [
2016-11-11 00:19:53 +03:00
9,
2016-11-02 18:07:06 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
9,
2016-11-02 18:07:06 +03:00
3
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 18:07:06 +03:00
"summary": "Added the 'f4' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 18:07:06 +03:00
"insert": {
2016-11-02 17:50:05 +03:00
"start": [
2016-11-11 00:19:53 +03:00
9,
2016-11-02 18:07:06 +03:00
6
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
9,
2016-11-02 18:07:06 +03:00
12
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 18:07:06 +03:00
"summary": "Added the '1.5e-5' float_literal"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 18:07:06 +03:00
"insert": {
2016-11-02 17:50:05 +03:00
"start": [
2016-11-11 00:19:53 +03:00
10,
2016-11-02 18:07:06 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
10,
2016-11-02 18:07:06 +03:00
3
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 18:07:06 +03:00
"summary": "Added the 'f5' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 18:07:06 +03:00
"insert": {
2016-11-02 17:50:05 +03:00
"start": [
2016-11-11 00:19:53 +03:00
10,
2016-11-02 18:07:06 +03:00
6
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
10,
2016-11-02 18:07:06 +03:00
12
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 18:07:06 +03:00
"summary": "Added the '.5e-50' float_literal"
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",
"index 60df0eb..c0dd078 100644",
"--- a/float-literals.go",
"+++ b/float-literals.go",
"@@ -1,3 +1,13 @@",
"+f2 = 1.5",
"+f3 = 1.5e100",
"+f4 = 1.5e+50",
"+f5 = 1.5e-5",
"+f6 = .5e-50",
"+f1 = 1.5",
"+f2 = 1.5e100",
"+f3 = 1.5e+50",
"+f4 = 1.5e-5",
"+f5 = .5e-50",
" f1 = 1.5",
" f2 = 1.5e100",
" f3 = 1.5e+50"
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-22 21:51:11 +03:00
"shas": "542aaed2eccf682e9342b3bc6521179bc86cb766..94e21e404d14d3dfb9947048aded4b051e1535a9"
2016-11-02 17:50:05 +03:00
}
,{
"testCaseDescription": "go-float-literals-delete-insert-test",
"expectedResult": {
"changes": {
"float-literals.go": [
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f1' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
9
]
}
},
"summary": "Added the '1.5' float_literal"
},
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
9
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
13
]
}
]
},
"summary": "Replaced the '1.5' float_literal with the '1.5e100' float_literal"
},
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
13
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
13
]
}
]
},
"summary": "Replaced the '1.5e100' float_literal with the '1.5e+50' float_literal"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f4' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Added the '1.5e-5' float_literal"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f5' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Added the '.5e-50' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f4' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
13
]
}
},
"summary": "Deleted the '1.5e+50' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f5' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Deleted the '1.5e-5' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f6' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Deleted the '.5e-50' float_literal"
}
]
},
"errors": {}
},
"filePaths": [
"float-literals.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/float-literals.go b/float-literals.go",
"index c0dd078..1d76e74 100644",
"--- a/float-literals.go",
"+++ b/float-literals.go",
"@@ -1,8 +1,8 @@",
"-f2 = 1.5",
"-f3 = 1.5e100",
"-f4 = 1.5e+50",
"-f5 = 1.5e-5",
"-f6 = .5e-50",
"+f1 = 1.5",
"+f2 = 1.5e100",
"+f3 = 1.5e+50",
"+f4 = 1.5e-5",
"+f5 = .5e-50",
" f1 = 1.5",
" f2 = 1.5e100",
" f3 = 1.5e+50"
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-22 21:51:11 +03:00
"shas": "94e21e404d14d3dfb9947048aded4b051e1535a9..28ab9823e5e4a9e93d750a6d341b2a054db074c5"
2016-11-02 17:50:05 +03:00
}
,{
"testCaseDescription": "go-float-literals-replacement-test",
"expectedResult": {
"changes": {
"float-literals.go": [
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f2' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
9
]
}
},
"summary": "Added the '1.5' float_literal"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f3' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
13
]
}
},
"summary": "Added the '1.5e100' float_literal"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f4' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
13
]
}
},
"summary": "Added the '1.5e+50' float_literal"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f5' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Added the '1.5e-5' float_literal"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f6' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Added the '.5e-50' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f1' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
9
]
}
},
"summary": "Deleted the '1.5' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f2' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
13
]
}
},
"summary": "Deleted the '1.5e100' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f3' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
13
]
}
},
"summary": "Deleted the '1.5e+50' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f4' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Deleted the '1.5e-5' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f5' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Deleted the '.5e-50' float_literal"
}
]
},
"errors": {}
},
"filePaths": [
"float-literals.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/float-literals.go b/float-literals.go",
"index 1d76e74..c0dd078 100644",
"--- a/float-literals.go",
"+++ b/float-literals.go",
"@@ -1,8 +1,8 @@",
"-f1 = 1.5",
"-f2 = 1.5e100",
"-f3 = 1.5e+50",
"-f4 = 1.5e-5",
"-f5 = .5e-50",
"+f2 = 1.5",
"+f3 = 1.5e100",
"+f4 = 1.5e+50",
"+f5 = 1.5e-5",
"+f6 = .5e-50",
" f1 = 1.5",
" f2 = 1.5e100",
" f3 = 1.5e+50"
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-22 21:51:11 +03:00
"shas": "28ab9823e5e4a9e93d750a6d341b2a054db074c5..2ae7e286ce3d3cb86ceeaca5fd3a43a0be878c6f"
2016-11-02 17:50:05 +03:00
}
,{
"testCaseDescription": "go-float-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"float-literals.go": [
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f2' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
9
]
}
},
"summary": "Deleted the '1.5' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f3' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
13
]
}
},
"summary": "Deleted the '1.5e100' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f4' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
13
]
}
},
"summary": "Deleted the '1.5e+50' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f5' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Deleted the '1.5e-5' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f6' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Deleted the '.5e-50' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f1' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 17:50:05 +03:00
9
]
}
},
"summary": "Deleted the '1.5' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
7,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
7,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f2' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
7,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
7,
2016-11-02 17:50:05 +03:00
13
]
}
},
"summary": "Deleted the '1.5e100' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
8,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
8,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f3' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
8,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
8,
2016-11-02 17:50:05 +03:00
13
]
}
},
"summary": "Deleted the '1.5e+50' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
9,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
9,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f4' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
9,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
9,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Deleted the '1.5e-5' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
10,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
10,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f5' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
10,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
10,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Deleted the '.5e-50' float_literal"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f2' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 17:50:05 +03:00
9
]
}
},
"summary": "Added the '1.5' float_literal"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
7,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
7,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f3' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
7,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
7,
2016-11-02 17:50:05 +03:00
13
]
}
},
"summary": "Added the '1.5e100' float_literal"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
8,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
8,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f4' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
8,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
8,
2016-11-02 17:50:05 +03:00
13
]
}
},
"summary": "Added the '1.5e+50' float_literal"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
9,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
9,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f5' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
9,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
9,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Added the '1.5e-5' float_literal"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
10,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
10,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Added the 'f6' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
10,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
10,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Added the '.5e-50' float_literal"
}
]
},
"errors": {}
},
"filePaths": [
"float-literals.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/float-literals.go b/float-literals.go",
"index c0dd078..2fc4057 100644",
"--- a/float-literals.go",
"+++ b/float-literals.go",
"@@ -1,15 +1,10 @@",
"-f2 = 1.5",
"-f3 = 1.5e100",
"-f4 = 1.5e+50",
"-f5 = 1.5e-5",
"-f6 = .5e-50",
"-f1 = 1.5",
"-f2 = 1.5e100",
"-f3 = 1.5e+50",
"-f4 = 1.5e-5",
"-f5 = .5e-50",
" f1 = 1.5",
" f2 = 1.5e100",
" f3 = 1.5e+50",
" f4 = 1.5e-5",
" f5 = .5e-50",
"+f2 = 1.5",
"+f3 = 1.5e100",
"+f4 = 1.5e+50",
"+f5 = 1.5e-5",
"+f6 = .5e-50"
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-22 21:51:11 +03:00
"shas": "2ae7e286ce3d3cb86ceeaca5fd3a43a0be878c6f..671070238eb0d04b4d229aee41e274adc96804c5"
2016-11-02 17:50:05 +03:00
}
,{
"testCaseDescription": "go-float-literals-delete-test",
"expectedResult": {
"changes": {
"float-literals.go": [
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f1' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
9
]
}
},
"summary": "Deleted the '1.5' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f2' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
13
]
}
},
"summary": "Deleted the '1.5e100' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f3' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
13
]
}
},
"summary": "Deleted the '1.5e+50' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f4' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Deleted the '1.5e-5' float_literal"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
3
]
}
},
"summary": "Deleted the 'f5' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
12
]
}
},
"summary": "Deleted the '.5e-50' float_literal"
}
]
},
"errors": {}
},
"filePaths": [
"float-literals.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/float-literals.go b/float-literals.go",
"index 2fc4057..c99af8e 100644",
"--- a/float-literals.go",
"+++ b/float-literals.go",
"@@ -1,8 +1,3 @@",
"-f1 = 1.5",
"-f2 = 1.5e100",
"-f3 = 1.5e+50",
"-f4 = 1.5e-5",
"-f5 = .5e-50",
" f2 = 1.5",
" f3 = 1.5e100",
" f4 = 1.5e+50"
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-22 21:51:11 +03:00
"shas": "671070238eb0d04b4d229aee41e274adc96804c5..136ea5c73b9c8e70361515063d3e6ef26743e68a"
2016-11-02 17:50:05 +03:00
}
,{
"testCaseDescription": "go-float-literals-delete-rest-test",
"expectedResult": {
"changes": {
"float-literals.go": [
{
"span": {
2016-11-11 00:19:53 +03:00
"delete": {
"start": [
1,
1
],
"end": [
1,
3
]
}
},
"summary": "Deleted the 'f2' identifier"
},
{
"span": {
"delete": {
"start": [
1,
6
],
"end": [
1,
9
]
}
},
"summary": "Deleted the '1.5' float_literal"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
3
]
}
},
"summary": "Deleted the 'f3' identifier"
},
{
"span": {
"delete": {
"start": [
2,
6
],
"end": [
2,
13
]
}
},
"summary": "Deleted the '1.5e100' float_literal"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
3
]
}
},
"summary": "Deleted the 'f4' identifier"
},
{
"span": {
"delete": {
"start": [
3,
6
],
"end": [
3,
13
]
}
},
"summary": "Deleted the '1.5e+50' float_literal"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
3
]
}
},
"summary": "Deleted the 'f5' identifier"
},
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
12
]
}
2016-11-02 17:50:05 +03:00
},
2016-11-11 00:19:53 +03:00
"summary": "Deleted the '1.5e-5' float_literal"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
3
]
}
},
"summary": "Deleted the 'f6' identifier"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
12
]
}
},
"summary": "Deleted the '.5e-50' float_literal"
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",
"index c99af8e..e69de29 100644",
"--- a/float-literals.go",
"+++ b/float-literals.go",
"@@ -1,5 +0,0 @@",
"-f2 = 1.5",
"-f3 = 1.5e100",
"-f4 = 1.5e+50",
"-f5 = 1.5e-5",
"-f6 = .5e-50"
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-22 21:51:11 +03:00
"shas": "136ea5c73b9c8e70361515063d3e6ef26743e68a..75c79e65c9e8f3cb42455363b8f52ad7080f68e9"
2016-11-02 17:50:05 +03:00
}]