1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/go/slice-literals.json
2016-11-02 15:43:26 -04:00

689 lines
22 KiB
JSON

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