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/struct-literals.json
2016-11-10 15:36:44 -05:00

743 lines
24 KiB
JSON

[{
"testCaseDescription": "go-struct-literals-insert-test",
"expectedResult": {
"changes": {
"struct-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 's1' variable"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
32
]
}
},
"summary": "Added the 's2' variable"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
23
]
}
},
"summary": "Added the 's3' variable"
}
]
},
"errors": {}
},
"filePaths": [
"struct-literals.go"
],
"sha1": "bb9bc3e6100eaaf7ccd25a9360f08698cff15981",
"gitDir": "test/corpus/repos/go",
"sha2": "5751915de93bd4edbb76549621e27487401e9ddc"
}
,{
"testCaseDescription": "go-struct-literals-replacement-insert-test",
"expectedResult": {
"changes": {
"struct-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 's1' variable"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
34
]
}
},
"summary": "Added the 's2' variable"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
24
]
}
},
"summary": "Added the 's3' variable"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
12,
2
]
}
},
"summary": "Added the 's1' variable"
},
{
"span": {
"insert": {
"start": [
13,
1
],
"end": [
13,
32
]
}
},
"summary": "Added the 's2' variable"
},
{
"span": {
"insert": {
"start": [
14,
1
],
"end": [
14,
23
]
}
},
"summary": "Added the 's3' variable"
}
]
},
"errors": {}
},
"filePaths": [
"struct-literals.go"
],
"sha1": "5751915de93bd4edbb76549621e27487401e9ddc",
"gitDir": "test/corpus/repos/go",
"sha2": "0ac865f0373e18dd0b54761f3e7b229a8aeedcb7"
}
,{
"testCaseDescription": "go-struct-literals-delete-insert-test",
"expectedResult": {
"changes": {
"struct-literals.go": [
{
"span": {
"replace": [
{
"start": [
3,
12
],
"end": [
3,
15
]
},
{
"start": [
3,
12
],
"end": [
3,
18
]
}
]
},
"summary": "Replaced the 'Dog' identifier with the 'Person' identifier in the s1 variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
7,
21
],
"end": [
7,
26
]
},
{
"start": [
7,
21
],
"end": [
7,
24
]
}
]
},
"summary": "Replaced the 'float' identifier with the 'int' identifier in the s2 variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
7,
29
],
"end": [
7,
30
]
},
{
"start": [
7,
27
],
"end": [
7,
28
]
}
]
},
"summary": "Replaced the 'j' identifier with the 'i' identifier in the s2 variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
7,
32
],
"end": [
7,
33
]
},
{
"start": [
7,
30
],
"end": [
7,
31
]
}
]
},
"summary": "Replaced '6' with '5' in the s2 variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
8,
17
],
"end": [
8,
22
]
},
{
"start": [
8,
17
],
"end": [
8,
21
]
}
]
},
"summary": "Replaced the 'Month' identifier with the 'Time' identifier in the s3 variable of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"struct-literals.go"
],
"sha1": "0ac865f0373e18dd0b54761f3e7b229a8aeedcb7",
"gitDir": "test/corpus/repos/go",
"sha2": "156014fcaa38d31c2fde2e7fb290c8f4b2b636ba"
}
,{
"testCaseDescription": "go-struct-literals-replacement-test",
"expectedResult": {
"changes": {
"struct-literals.go": [
{
"span": {
"replace": [
{
"start": [
3,
12
],
"end": [
3,
18
]
},
{
"start": [
3,
12
],
"end": [
3,
15
]
}
]
},
"summary": "Replaced the 'Person' identifier with the 'Dog' identifier in the s1 variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
7,
21
],
"end": [
7,
24
]
},
{
"start": [
7,
21
],
"end": [
7,
26
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'float' identifier in the s2 variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
7,
27
],
"end": [
7,
28
]
},
{
"start": [
7,
29
],
"end": [
7,
30
]
}
]
},
"summary": "Replaced the 'i' identifier with the 'j' identifier in the s2 variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
7,
30
],
"end": [
7,
31
]
},
{
"start": [
7,
32
],
"end": [
7,
33
]
}
]
},
"summary": "Replaced '5' with '6' in the s2 variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
8,
17
],
"end": [
8,
21
]
},
{
"start": [
8,
17
],
"end": [
8,
22
]
}
]
},
"summary": "Replaced the 'Time' identifier with the 'Month' identifier in the s3 variable of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"struct-literals.go"
],
"sha1": "156014fcaa38d31c2fde2e7fb290c8f4b2b636ba",
"gitDir": "test/corpus/repos/go",
"sha2": "174afee30e6ac3bdc677dabaccec0fbc080702f2"
}
,{
"testCaseDescription": "go-struct-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"struct-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 's1' variable"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
34
]
}
},
"summary": "Deleted the 's2' variable"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
24
]
}
},
"summary": "Deleted the 's3' variable"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
12,
2
]
}
},
"summary": "Deleted the 's1' variable"
},
{
"span": {
"delete": {
"start": [
13,
1
],
"end": [
13,
32
]
}
},
"summary": "Deleted the 's2' variable"
},
{
"span": {
"delete": {
"start": [
14,
1
],
"end": [
14,
23
]
}
},
"summary": "Deleted the 's3' variable"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
12,
2
]
}
},
"summary": "Added the 's1' variable"
},
{
"span": {
"insert": {
"start": [
13,
1
],
"end": [
13,
34
]
}
},
"summary": "Added the 's2' variable"
},
{
"span": {
"insert": {
"start": [
14,
1
],
"end": [
14,
24
]
}
},
"summary": "Added the 's3' variable"
}
]
},
"errors": {}
},
"filePaths": [
"struct-literals.go"
],
"sha1": "174afee30e6ac3bdc677dabaccec0fbc080702f2",
"gitDir": "test/corpus/repos/go",
"sha2": "603e16c70c2ac01320ed82cde555516397b7861a"
}
,{
"testCaseDescription": "go-struct-literals-delete-test",
"expectedResult": {
"changes": {
"struct-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 's1' variable"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
32
]
}
},
"summary": "Deleted the 's2' variable"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
23
]
}
},
"summary": "Deleted the 's3' variable"
}
]
},
"errors": {}
},
"filePaths": [
"struct-literals.go"
],
"sha1": "603e16c70c2ac01320ed82cde555516397b7861a",
"gitDir": "test/corpus/repos/go",
"sha2": "3c9c55133ad8c871ab1b2b9704781762203f8a7b"
}
,{
"testCaseDescription": "go-struct-literals-delete-rest-test",
"expectedResult": {
"changes": {
"struct-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 's1' variable"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
34
]
}
},
"summary": "Deleted the 's2' variable"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
24
]
}
},
"summary": "Deleted the 's3' variable"
}
]
},
"errors": {}
},
"filePaths": [
"struct-literals.go"
],
"sha1": "3c9c55133ad8c871ab1b2b9704781762203f8a7b",
"gitDir": "test/corpus/repos/go",
"sha2": "a4eb90cc8a9cbf4002ab1c646f3b965bce70cc47"
}]