1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00
semantic/test/corpus/diff-summaries/go/slice-literals.json

689 lines
22 KiB
JSON
Raw Normal View History

2016-11-02 04:36:43 +03:00
[{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-slice-literals-insert-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"slice-literals.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
2016-11-02 21:37:30 +03:00
22
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the 's1' variable"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2016-11-02 21:37:30 +03:00
26
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the 's2' variable"
2016-11-02 21:37:30 +03:00
},
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
2016-11-02 21:37:30 +03:00
8,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the 's3' variable"
2016-11-02 04:36:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 04:36:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"slice-literals.go"
2016-11-02 04:36:43 +03:00
],
"sha1": "4835c36f7962a7adb6865b26cbbd879c3ca5ec12",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "2dc24f70c7024f40ed40468103554445ba2c6297"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-slice-literals-replacement-insert-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"slice-literals.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
2016-11-02 21:37:30 +03:00
27
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the 's1' variable"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2016-11-02 21:37:30 +03:00
29
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the 's2' variable"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
5,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
8,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the 's3' variable"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
9,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
9,
22
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the 's1' variable"
2016-11-02 21:37:30 +03:00
},
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
10,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
10,
26
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the 's2' variable"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
11,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
14,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the 's3' variable"
2016-11-02 04:36:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 04:36:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"slice-literals.go"
2016-11-02 04:36:43 +03:00
],
"sha1": "2dc24f70c7024f40ed40468103554445ba2c6297",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "51e90407a4212911477de9802ed06b3ca12a9e12"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-slice-literals-delete-insert-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"slice-literals.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"replace": [
{
"start": [
3,
21
2016-11-02 04:36:43 +03:00
],
"end": [
3,
26
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
3,
20
2016-11-02 04:36:43 +03:00
],
"end": [
3,
22
2016-11-02 04:36:43 +03:00
]
}
]
},
"summary": "Replaced the \"sup\" string with the '{}' literal_value in the s1 variable of the 'main' module"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
4,
2016-11-02 21:37:30 +03:00
21
2016-11-02 04:36:43 +03:00
],
"end": [
4,
28
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
4,
2016-11-02 21:37:30 +03:00
21
2016-11-02 04:36:43 +03:00
],
"end": [
4,
2016-11-02 21:37:30 +03:00
25
2016-11-02 04:36:43 +03:00
]
}
]
},
"summary": "Replaced the \"hello\" string with the \"hi\" string in the s2 variable of the 'main' module"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
6,
1
2016-11-02 04:36:43 +03:00
],
"end": [
6,
6
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
6,
1
2016-11-02 04:36:43 +03:00
],
"end": [
6,
5
2016-11-02 04:36:43 +03:00
]
}
]
},
"summary": "Replaced the \"bar\" string with the \"hi\" string in the s3 variable of the 'main' module"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"replace": [
{
"start": [
7,
2
],
"end": [
7,
7
]
},
{
"start": [
7,
2
],
"end": [
7,
9
]
}
]
2016-11-02 21:37:30 +03:00
},
"summary": "Replaced the \"baz\" string with the \"hello\" string in the s3 variable of the 'main' module"
2016-11-02 04:36:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"slice-literals.go"
2016-11-02 04:36:43 +03:00
],
"sha1": "51e90407a4212911477de9802ed06b3ca12a9e12",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "0de90ef264fae8602891cc5957bd832c3cea0098"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-slice-literals-replacement-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"slice-literals.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"replace": [
{
"start": [
3,
2016-11-02 21:37:30 +03:00
20
2016-11-02 04:36:43 +03:00
],
"end": [
3,
2016-11-02 21:37:30 +03:00
22
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
3,
2016-11-02 21:37:30 +03:00
21
2016-11-02 04:36:43 +03:00
],
"end": [
3,
2016-11-02 21:37:30 +03:00
26
2016-11-02 04:36:43 +03:00
]
}
]
},
"summary": "Replaced the '{}' literal_value with the \"sup\" string in the s1 variable of the 'main' module"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-11-02 21:37:30 +03:00
4,
21
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
4,
25
]
},
{
"start": [
4,
21
],
"end": [
4,
2016-11-02 04:36:43 +03:00
28
]
2016-11-02 21:37:30 +03:00
}
]
},
"summary": "Replaced the \"hi\" string with the \"hello\" string in the s2 variable of the 'main' module"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"replace": [
{
"start": [
6,
1
],
"end": [
6,
5
]
},
{
"start": [
6,
1
],
"end": [
6,
6
]
}
]
},
"summary": "Replaced the \"hi\" string with the \"bar\" string in the s3 variable of the 'main' module"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"replace": [
{
"start": [
7,
2
],
"end": [
7,
9
]
},
{
"start": [
7,
2
],
"end": [
7,
7
]
}
]
},
"summary": "Replaced the \"hello\" string with the \"baz\" string in the s3 variable of the 'main' module"
2016-11-02 04:36:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"slice-literals.go"
2016-11-02 04:36:43 +03:00
],
"sha1": "0de90ef264fae8602891cc5957bd832c3cea0098",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "c51de0f5dafd3c50134bd99df7e0230e536f0212"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-slice-literals-delete-replacement-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"slice-literals.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2016-11-02 21:37:30 +03:00
27
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the 's1' variable"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2016-11-02 21:37:30 +03:00
29
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the 's2' variable"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-02 21:37:30 +03:00
5,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
8,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the 's3' variable"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-02 21:37:30 +03:00
9,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
9,
22
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the 's1' variable"
2016-11-02 04:36:43 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"delete": {
2016-11-02 04:36:43 +03:00
"start": [
2016-11-02 21:37:30 +03:00
10,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
10,
26
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the 's2' variable"
2016-11-02 04:36:43 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"delete": {
2016-11-02 04:36:43 +03:00
"start": [
2016-11-02 21:37:30 +03:00
11,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
14,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the 's3' variable"
2016-11-02 21:37:30 +03:00
},
2016-11-02 04:36:43 +03:00
{
"span": {
2016-11-02 21:37:30 +03:00
"insert": {
2016-11-02 04:36:43 +03:00
"start": [
2016-11-02 21:37:30 +03:00
9,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
9,
27
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the 's1' variable"
2016-11-02 04:36:43 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"insert": {
2016-11-02 04:36:43 +03:00
"start": [
2016-11-02 21:37:30 +03:00
10,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
10,
29
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the 's2' variable"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
11,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
14,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the 's3' variable"
2016-11-02 04:36:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 04:36:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"slice-literals.go"
2016-11-02 04:36:43 +03:00
],
"sha1": "c51de0f5dafd3c50134bd99df7e0230e536f0212",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "eace70e2a9b1a0f745f681c6c9e76793f74e00a9"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-slice-literals-delete-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"slice-literals.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2016-11-02 21:37:30 +03:00
22
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the 's1' variable"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2016-11-02 21:37:30 +03:00
26
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the 's2' variable"
2016-11-02 21:37:30 +03:00
},
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
2016-11-02 21:37:30 +03:00
8,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the 's3' variable"
2016-11-02 04:36:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 04:36:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"slice-literals.go"
2016-11-02 04:36:43 +03:00
],
"sha1": "eace70e2a9b1a0f745f681c6c9e76793f74e00a9",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "d71ca301094e02bcd68fa7fe408c1329539852e8"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-slice-literals-delete-rest-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"slice-literals.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2016-11-02 21:37:30 +03:00
27
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the 's1' variable"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2016-11-02 21:37:30 +03:00
29
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the 's2' variable"
2016-11-02 21:37:30 +03:00
},
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
2016-11-02 21:37:30 +03:00
8,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the 's3' variable"
2016-11-02 04:36:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 04:36:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"slice-literals.go"
2016-11-02 04:36:43 +03:00
],
"sha1": "d71ca301094e02bcd68fa7fe408c1329539852e8",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "fb0dc8406d6edc4fac954583201b7d42c9f04223"
2016-11-02 04:36:43 +03:00
}]