mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
1601 lines
51 KiB
JSON
1601 lines
51 KiB
JSON
[{
|
|
"testCaseDescription": "go-float-literals-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"float-literals.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'main' module with the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"float-literals.go"
|
|
],
|
|
"sha1": "c8b9b3ecc60e46e98a74627dc54d707e2d5bcc10",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "4d61ded5de5e03ccab09ce34c5ad1e47afe8f154"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-float-literals-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"float-literals.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f2' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
6
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f3' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
6
|
|
],
|
|
"end": [
|
|
4,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5e100' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f4' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
6
|
|
],
|
|
"end": [
|
|
5,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5e+50' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f5' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
6
|
|
],
|
|
"end": [
|
|
6,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5e-5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f6' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
6
|
|
],
|
|
"end": [
|
|
7,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '.5e-50' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f1' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
6
|
|
],
|
|
"end": [
|
|
8,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
9,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f2' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
9,
|
|
6
|
|
],
|
|
"end": [
|
|
9,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5e100' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
10,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f3' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
10,
|
|
6
|
|
],
|
|
"end": [
|
|
10,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5e+50' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
11,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f4' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
11,
|
|
6
|
|
],
|
|
"end": [
|
|
11,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5e-5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f5' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
6
|
|
],
|
|
"end": [
|
|
12,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '.5e-50' float_literal"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"float-literals.go"
|
|
],
|
|
"sha1": "4d61ded5de5e03ccab09ce34c5ad1e47afe8f154",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "82fbe9d9957ad70292af39823f71912ac944634b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-float-literals-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"float-literals.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f1' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
6
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
6
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
6
|
|
],
|
|
"end": [
|
|
4,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '1.5' float_literal with the '1.5e100' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
6
|
|
],
|
|
"end": [
|
|
4,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
5,
|
|
6
|
|
],
|
|
"end": [
|
|
5,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '1.5e100' float_literal with the '1.5e+50' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f4' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
6
|
|
],
|
|
"end": [
|
|
6,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5e-5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f5' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
6
|
|
],
|
|
"end": [
|
|
7,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '.5e-50' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f4' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
6
|
|
],
|
|
"end": [
|
|
5,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5e+50' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f5' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
6
|
|
],
|
|
"end": [
|
|
6,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5e-5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f6' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
6
|
|
],
|
|
"end": [
|
|
7,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '.5e-50' float_literal"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"float-literals.go"
|
|
],
|
|
"sha1": "82fbe9d9957ad70292af39823f71912ac944634b",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "cecb6727486a610d8058ef2de404a5135e037156"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-float-literals-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"float-literals.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f2' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
6
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f3' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
6
|
|
],
|
|
"end": [
|
|
4,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5e100' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f4' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
6
|
|
],
|
|
"end": [
|
|
5,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5e+50' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f5' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
6
|
|
],
|
|
"end": [
|
|
6,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5e-5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f6' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
6
|
|
],
|
|
"end": [
|
|
7,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '.5e-50' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f1' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
6
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f2' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
6
|
|
],
|
|
"end": [
|
|
4,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5e100' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f3' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
6
|
|
],
|
|
"end": [
|
|
5,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5e+50' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f4' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
6
|
|
],
|
|
"end": [
|
|
6,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5e-5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f5' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
6
|
|
],
|
|
"end": [
|
|
7,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '.5e-50' float_literal"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"float-literals.go"
|
|
],
|
|
"sha1": "cecb6727486a610d8058ef2de404a5135e037156",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "828a6503f71ded685ca83dc7e0c6e458a08df54d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-float-literals-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"float-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f2' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
6
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f3' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
6
|
|
],
|
|
"end": [
|
|
4,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5e100' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f4' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
6
|
|
],
|
|
"end": [
|
|
5,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5e+50' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f5' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
6
|
|
],
|
|
"end": [
|
|
6,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5e-5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f6' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
6
|
|
],
|
|
"end": [
|
|
7,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '.5e-50' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f1' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
6
|
|
],
|
|
"end": [
|
|
8,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
9,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f2' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
9,
|
|
6
|
|
],
|
|
"end": [
|
|
9,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5e100' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
10,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f3' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
10,
|
|
6
|
|
],
|
|
"end": [
|
|
10,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5e+50' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
11,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f4' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
11,
|
|
6
|
|
],
|
|
"end": [
|
|
11,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5e-5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f5' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
12,
|
|
6
|
|
],
|
|
"end": [
|
|
12,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '.5e-50' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f2' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
6
|
|
],
|
|
"end": [
|
|
8,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
9,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f3' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
9,
|
|
6
|
|
],
|
|
"end": [
|
|
9,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5e100' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
10,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f4' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
10,
|
|
6
|
|
],
|
|
"end": [
|
|
10,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5e+50' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
11,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f5' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
11,
|
|
6
|
|
],
|
|
"end": [
|
|
11,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1.5e-5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f6' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
6
|
|
],
|
|
"end": [
|
|
12,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '.5e-50' float_literal"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"float-literals.go"
|
|
],
|
|
"sha1": "828a6503f71ded685ca83dc7e0c6e458a08df54d",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "e1d4a5037beb416a81ae165258489c4a57f6d893"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-float-literals-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"float-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f1' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
6
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f2' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
6
|
|
],
|
|
"end": [
|
|
4,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5e100' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f3' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
6
|
|
],
|
|
"end": [
|
|
5,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5e+50' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f4' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
6
|
|
],
|
|
"end": [
|
|
6,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1.5e-5' float_literal"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f5' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
6
|
|
],
|
|
"end": [
|
|
7,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '.5e-50' float_literal"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"float-literals.go"
|
|
],
|
|
"sha1": "e1d4a5037beb416a81ae165258489c4a57f6d893",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "480d56b4c6319f78d7664d249abdaa9c3bf00ef0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-float-literals-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"float-literals.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
1
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'main' module with the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"float-literals.go"
|
|
],
|
|
"sha1": "480d56b4c6319f78d7664d249abdaa9c3bf00ef0",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "676bd4a3101c20ceaca022d723dbadd16e817d93"
|
|
}]
|