1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/go/float-literals.json
2016-11-02 16:46:17 -04:00

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": "f2d6011c10c9d66b6febfac34681de337a996929",
"gitDir": "test/corpus/repos/go",
"sha2": "2c547f6ec831c47e0d00f2aa05269644dd185b7e"
}
,{
"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": "2c547f6ec831c47e0d00f2aa05269644dd185b7e",
"gitDir": "test/corpus/repos/go",
"sha2": "b3b768fc070fcc1e57f73d86a283726720043646"
}
,{
"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": "b3b768fc070fcc1e57f73d86a283726720043646",
"gitDir": "test/corpus/repos/go",
"sha2": "5f815d62293d0108a3abfe9f28d0662350215b50"
}
,{
"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": "5f815d62293d0108a3abfe9f28d0662350215b50",
"gitDir": "test/corpus/repos/go",
"sha2": "3655b665ecb63a8e1d5786f4980c0dff39ac8334"
}
,{
"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": "3655b665ecb63a8e1d5786f4980c0dff39ac8334",
"gitDir": "test/corpus/repos/go",
"sha2": "93a22c5f0cba69b4bc35ac0e64ed3573d9a880cd"
}
,{
"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": "93a22c5f0cba69b4bc35ac0e64ed3573d9a880cd",
"gitDir": "test/corpus/repos/go",
"sha2": "0260255d8762c1e76e0b4dfdbb4ebbf32e336cbd"
}
,{
"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": "0260255d8762c1e76e0b4dfdbb4ebbf32e336cbd",
"gitDir": "test/corpus/repos/go",
"sha2": "8a8368e9d6ef23d1fffec406ae448a3157f99aca"
}]