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

1874 lines
59 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": {
"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": {
"insert": {
"start": [
4,
2
],
"end": [
4,
4
]
}
},
"summary": "Added the 'f2' identifier"
},
{
"span": {
"insert": {
"start": [
4,
7
],
"end": [
4,
14
]
}
},
"summary": "Added the '1.5e100' float_literal"
},
{
"span": {
"insert": {
"start": [
5,
2
],
"end": [
5,
4
]
}
},
"summary": "Added the 'f3' identifier"
},
{
"span": {
"insert": {
"start": [
5,
7
],
"end": [
5,
14
]
}
},
"summary": "Added the '1.5e+50' float_literal"
},
{
"span": {
"insert": {
"start": [
6,
2
],
"end": [
6,
4
]
}
},
"summary": "Added the 'f4' identifier"
},
{
"span": {
"insert": {
"start": [
6,
7
],
"end": [
6,
13
]
}
},
"summary": "Added the '1.5e-5' float_literal"
},
{
"span": {
"insert": {
"start": [
7,
2
],
"end": [
7,
4
]
}
},
"summary": "Added the 'f5' identifier"
},
{
"span": {
"insert": {
"start": [
7,
7
],
"end": [
7,
13
]
}
},
"summary": "Added the '.5e-50' float_literal"
}
]
},
"errors": {}
},
"filePaths": [
"float-literals.go"
],
"sha1": "43145773a45c783b422170627a42548a2096bd13",
"gitDir": "test/corpus/repos/go",
"sha2": "52d5de93f3b350f6d142cecf183c4db78bf1456d"
}
,{
"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": {
"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,
2
],
"end": [
4,
4
]
}
},
"summary": "Deleted the 'f2' identifier"
},
{
"span": {
"delete": {
"start": [
4,
7
],
"end": [
4,
14
]
}
},
"summary": "Deleted the '1.5e100' float_literal"
},
{
"span": {
"delete": {
"start": [
5,
2
],
"end": [
5,
4
]
}
},
"summary": "Deleted the 'f3' identifier"
},
{
"span": {
"delete": {
"start": [
5,
7
],
"end": [
5,
14
]
}
},
"summary": "Deleted the '1.5e+50' float_literal"
},
{
"span": {
"delete": {
"start": [
6,
2
],
"end": [
6,
4
]
}
},
"summary": "Deleted the 'f4' identifier"
},
{
"span": {
"delete": {
"start": [
6,
7
],
"end": [
6,
13
]
}
},
"summary": "Deleted the '1.5e-5' float_literal"
},
{
"span": {
"delete": {
"start": [
7,
2
],
"end": [
7,
4
]
}
},
"summary": "Deleted the 'f5' identifier"
},
{
"span": {
"delete": {
"start": [
7,
7
],
"end": [
7,
13
]
}
},
"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,
2
],
"end": [
9,
4
]
}
},
"summary": "Deleted the 'f2' identifier"
},
{
"span": {
"delete": {
"start": [
9,
7
],
"end": [
9,
14
]
}
},
"summary": "Deleted the '1.5e100' float_literal"
},
{
"span": {
"delete": {
"start": [
10,
2
],
"end": [
10,
4
]
}
},
"summary": "Deleted the 'f3' identifier"
},
{
"span": {
"delete": {
"start": [
10,
7
],
"end": [
10,
14
]
}
},
"summary": "Deleted the '1.5e+50' float_literal"
},
{
"span": {
"delete": {
"start": [
11,
2
],
"end": [
11,
4
]
}
},
"summary": "Deleted the 'f4' identifier"
},
{
"span": {
"delete": {
"start": [
11,
7
],
"end": [
11,
13
]
}
},
"summary": "Deleted the '1.5e-5' float_literal"
},
{
"span": {
"delete": {
"start": [
12,
2
],
"end": [
12,
4
]
}
},
"summary": "Deleted the 'f5' identifier"
},
{
"span": {
"delete": {
"start": [
12,
7
],
"end": [
12,
13
]
}
},
"summary": "Deleted the '.5e-50' float_literal"
}
]
},
"errors": {}
},
"filePaths": [
"float-literals.go"
],
"sha1": "52d5de93f3b350f6d142cecf183c4db78bf1456d",
"gitDir": "test/corpus/repos/go",
"sha2": "3694a9b10db76ad75728590fd70466e45d732bce"
}
,{
"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": "3694a9b10db76ad75728590fd70466e45d732bce",
"gitDir": "test/corpus/repos/go",
"sha2": "97fd92b82a89eeb9305f5330f3a99adcc4389e05"
}
,{
"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": "97fd92b82a89eeb9305f5330f3a99adcc4389e05",
"gitDir": "test/corpus/repos/go",
"sha2": "7edd385d421e05ba3ed41390e6518ccdc21fd0a4"
}
,{
"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": "7edd385d421e05ba3ed41390e6518ccdc21fd0a4",
"gitDir": "test/corpus/repos/go",
"sha2": "609c830b41d9e11450da23a8f84e42dd37a4f76a"
}
,{
"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": "609c830b41d9e11450da23a8f84e42dd37a4f76a",
"gitDir": "test/corpus/repos/go",
"sha2": "1adcb1f4f4509d3e1a4c35939a654cafe1246894"
}
,{
"testCaseDescription": "go-float-literals-delete-rest-test",
"expectedResult": {
"changes": {
"float-literals.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"float-literals.go"
],
"sha1": "1adcb1f4f4509d3e1a4c35939a654cafe1246894",
"gitDir": "test/corpus/repos/go",
"sha2": "fca223b7d276d1418cf78d534ca2cb53f7d34531"
}]