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

1601 lines
51 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-02 18:07:06 +03:00
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
2016-11-02 17:50:05 +03:00
},
2016-11-02 18:07:06 +03:00
"summary": "Replaced the 'main' module statement with the 'main' module statement"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"float-literals.go"
],
2016-11-02 18:07:06 +03:00
"sha1": "a2b011eb43cb7387b0c13f0af9c25357f0a815ea",
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "503aa15c7164aa0d7ef5bc568222d2303caa0211"
2016-11-02 17:50:05 +03:00
}
,{
"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": {
2016-11-02 18:07:06 +03:00
"insert": {
2016-11-02 17:50:05 +03:00
"start": [
8,
1
],
"end": [
8,
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": [
8,
6
],
"end": [
8,
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": [
9,
2016-11-02 18:07:06 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
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 '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": [
9,
2016-11-02 18:07:06 +03:00
6
2016-11-02 17:50:05 +03:00
],
"end": [
9,
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": [
10,
2016-11-02 18:07:06 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
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 '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": [
10,
2016-11-02 18:07:06 +03:00
6
2016-11-02 17:50:05 +03:00
],
"end": [
10,
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": [
11,
2016-11-02 18:07:06 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
11,
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": [
11,
2016-11-02 18:07:06 +03:00
6
2016-11-02 17:50:05 +03:00
],
"end": [
11,
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": [
12,
2016-11-02 18:07:06 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
12,
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": [
12,
2016-11-02 18:07:06 +03:00
6
2016-11-02 17:50:05 +03:00
],
"end": [
12,
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-02 18:07:06 +03:00
"sha1": "503aa15c7164aa0d7ef5bc568222d2303caa0211",
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "e76839e47c49c30419456e46c6f0eb70837489a9"
2016-11-02 17:50:05 +03:00
}
,{
"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"
],
2016-11-02 18:07:06 +03:00
"sha1": "e76839e47c49c30419456e46c6f0eb70837489a9",
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "0efb85b1f00e42ea3948540ce320ffba6e4ec3e4"
2016-11-02 17:50:05 +03:00
}
,{
"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"
],
2016-11-02 18:07:06 +03:00
"sha1": "0efb85b1f00e42ea3948540ce320ffba6e4ec3e4",
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "bb3546ff8a0afba864e4d46776287c8b4c89f9de"
2016-11-02 17:50:05 +03:00
}
,{
"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"
],
2016-11-02 18:07:06 +03:00
"sha1": "bb3546ff8a0afba864e4d46776287c8b4c89f9de",
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "911522ed9b43ed72bd114907ea04ea6a821baa45"
2016-11-02 17:50:05 +03:00
}
,{
"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"
],
2016-11-02 18:07:06 +03:00
"sha1": "911522ed9b43ed72bd114907ea04ea6a821baa45",
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "2b4209415a7cb7f7979de65d61ba21489751cb06"
2016-11-02 17:50:05 +03:00
}
,{
"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"
],
2016-11-02 18:07:06 +03:00
"sha1": "2b4209415a7cb7f7979de65d61ba21489751cb06",
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "e9bbbdb9d5ff21e586ed651f8b750bb05eb77669"
2016-11-02 17:50:05 +03:00
}]