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
2016-11-02 11:07:06 -04:00

1601 lines
51 KiB
JSON

[{
"testCaseDescription": "go-float-literals-insert-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": "a2b011eb43cb7387b0c13f0af9c25357f0a815ea",
"gitDir": "test/corpus/repos/go",
"sha2": "503aa15c7164aa0d7ef5bc568222d2303caa0211"
}
,{
"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": "503aa15c7164aa0d7ef5bc568222d2303caa0211",
"gitDir": "test/corpus/repos/go",
"sha2": "e76839e47c49c30419456e46c6f0eb70837489a9"
}
,{
"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": "e76839e47c49c30419456e46c6f0eb70837489a9",
"gitDir": "test/corpus/repos/go",
"sha2": "0efb85b1f00e42ea3948540ce320ffba6e4ec3e4"
}
,{
"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": "0efb85b1f00e42ea3948540ce320ffba6e4ec3e4",
"gitDir": "test/corpus/repos/go",
"sha2": "bb3546ff8a0afba864e4d46776287c8b4c89f9de"
}
,{
"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": "bb3546ff8a0afba864e4d46776287c8b4c89f9de",
"gitDir": "test/corpus/repos/go",
"sha2": "911522ed9b43ed72bd114907ea04ea6a821baa45"
}
,{
"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": "911522ed9b43ed72bd114907ea04ea6a821baa45",
"gitDir": "test/corpus/repos/go",
"sha2": "2b4209415a7cb7f7979de65d61ba21489751cb06"
}
,{
"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": "2b4209415a7cb7f7979de65d61ba21489751cb06",
"gitDir": "test/corpus/repos/go",
"sha2": "e9bbbdb9d5ff21e586ed651f8b750bb05eb77669"
}]