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/assignment-statements.json
2016-11-02 18:09:32 -04:00

1349 lines
42 KiB
JSON

[{
"testCaseDescription": "go-assignment-statements-insert-test",
"expectedResult": {
"changes": {
"assignment-statements.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": [
"assignment-statements.go"
],
"sha1": "3fed9e1daf07ed1a36f9e2d45fc5acb674798813",
"gitDir": "test/corpus/repos/go",
"sha2": "d71aa95bec2004711a6d35a64378ce1fbf84dc38"
}
,{
"testCaseDescription": "go-assignment-statements-replacement-insert-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Added 'x' identifier"
},
{
"span": {
"insert": {
"start": [
3,
5
],
"end": [
3,
6
]
}
},
"summary": "Added '1'"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added 'y' identifier"
},
{
"span": {
"insert": {
"start": [
4,
4
],
"end": [
4,
5
]
}
},
"summary": "Added 'c' identifier"
},
{
"span": {
"insert": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Added '2'"
},
{
"span": {
"insert": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Added '3'"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Added 'z' identifier"
},
{
"span": {
"insert": {
"start": [
5,
6
],
"end": [
5,
7
]
}
},
"summary": "Added '3'"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Added 'h' identifier"
},
{
"span": {
"insert": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Added '1'"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
2
]
}
},
"summary": "Added 'a' identifier"
},
{
"span": {
"insert": {
"start": [
7,
5
],
"end": [
7,
6
]
}
},
"summary": "Added '1'"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
2
]
}
},
"summary": "Added 'b' identifier"
},
{
"span": {
"insert": {
"start": [
8,
4
],
"end": [
8,
5
]
}
},
"summary": "Added 'c' identifier"
},
{
"span": {
"insert": {
"start": [
8,
9
],
"end": [
8,
10
]
}
},
"summary": "Added '2'"
},
{
"span": {
"insert": {
"start": [
8,
12
],
"end": [
8,
13
]
}
},
"summary": "Added '3'"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
2
]
}
},
"summary": "Added 'd' identifier"
},
{
"span": {
"insert": {
"start": [
9,
6
],
"end": [
9,
7
]
}
},
"summary": "Added '3'"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
2
]
}
},
"summary": "Added 'e' identifier"
},
{
"span": {
"insert": {
"start": [
10,
6
],
"end": [
10,
7
]
}
},
"summary": "Added '1'"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
"sha1": "d71aa95bec2004711a6d35a64378ce1fbf84dc38",
"gitDir": "test/corpus/repos/go",
"sha2": "d73ab11fab294fdbe26879f128fec49c34eaa6da"
}
,{
"testCaseDescription": "go-assignment-statements-delete-insert-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
2
]
},
{
"start": [
3,
1
],
"end": [
3,
2
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
2
]
},
{
"start": [
5,
1
],
"end": [
5,
2
]
}
]
},
"summary": "Replaced the 'z' identifier with the 'd' identifier"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Added 'e' identifier"
},
{
"span": {
"insert": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Added '1'"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted 'h' identifier"
},
{
"span": {
"delete": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Deleted '1'"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
"sha1": "d73ab11fab294fdbe26879f128fec49c34eaa6da",
"gitDir": "test/corpus/repos/go",
"sha2": "b733c4569f54fc1bea8dfccf44caeca2e084fc16"
}
,{
"testCaseDescription": "go-assignment-statements-replacement-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
2
]
},
{
"start": [
3,
1
],
"end": [
3,
2
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
2
]
},
{
"start": [
5,
1
],
"end": [
5,
2
]
}
]
},
"summary": "Replaced the 'd' identifier with the 'z' identifier"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Added 'h' identifier"
},
{
"span": {
"insert": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Added '1'"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted 'e' identifier"
},
{
"span": {
"delete": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Deleted '1'"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
"sha1": "b733c4569f54fc1bea8dfccf44caeca2e084fc16",
"gitDir": "test/corpus/repos/go",
"sha2": "a02ce2e65a305d9b43dfd95398bf8729d441a1a4"
}
,{
"testCaseDescription": "go-assignment-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Deleted 'x' identifier"
},
{
"span": {
"delete": {
"start": [
3,
5
],
"end": [
3,
6
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted 'y' identifier"
},
{
"span": {
"delete": {
"start": [
4,
4
],
"end": [
4,
5
]
}
},
"summary": "Deleted 'c' identifier"
},
{
"span": {
"delete": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Deleted '2'"
},
{
"span": {
"delete": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Deleted '3'"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted 'z' identifier"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
7
]
}
},
"summary": "Deleted '3'"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted 'h' identifier"
},
{
"span": {
"delete": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted 'a' identifier"
},
{
"span": {
"delete": {
"start": [
7,
5
],
"end": [
7,
6
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
2
]
}
},
"summary": "Deleted 'b' identifier"
},
{
"span": {
"delete": {
"start": [
8,
4
],
"end": [
8,
5
]
}
},
"summary": "Deleted 'c' identifier"
},
{
"span": {
"delete": {
"start": [
8,
9
],
"end": [
8,
10
]
}
},
"summary": "Deleted '2'"
},
{
"span": {
"delete": {
"start": [
8,
12
],
"end": [
8,
13
]
}
},
"summary": "Deleted '3'"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
2
]
}
},
"summary": "Deleted 'd' identifier"
},
{
"span": {
"delete": {
"start": [
9,
6
],
"end": [
9,
7
]
}
},
"summary": "Deleted '3'"
},
{
"span": {
"delete": {
"start": [
10,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted 'e' identifier"
},
{
"span": {
"delete": {
"start": [
10,
6
],
"end": [
10,
7
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
2
]
}
},
"summary": "Added 'x' identifier"
},
{
"span": {
"insert": {
"start": [
7,
5
],
"end": [
7,
6
]
}
},
"summary": "Added '1'"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
2
]
}
},
"summary": "Added 'y' identifier"
},
{
"span": {
"insert": {
"start": [
8,
4
],
"end": [
8,
5
]
}
},
"summary": "Added 'c' identifier"
},
{
"span": {
"insert": {
"start": [
8,
9
],
"end": [
8,
10
]
}
},
"summary": "Added '2'"
},
{
"span": {
"insert": {
"start": [
8,
12
],
"end": [
8,
13
]
}
},
"summary": "Added '3'"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
2
]
}
},
"summary": "Added 'z' identifier"
},
{
"span": {
"insert": {
"start": [
9,
6
],
"end": [
9,
7
]
}
},
"summary": "Added '3'"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
2
]
}
},
"summary": "Added 'h' identifier"
},
{
"span": {
"insert": {
"start": [
10,
6
],
"end": [
10,
7
]
}
},
"summary": "Added '1'"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
"sha1": "a02ce2e65a305d9b43dfd95398bf8729d441a1a4",
"gitDir": "test/corpus/repos/go",
"sha2": "0319a9a868b5b63b4ae8c25942cfda89029f6300"
}
,{
"testCaseDescription": "go-assignment-statements-delete-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Deleted 'a' identifier"
},
{
"span": {
"delete": {
"start": [
3,
5
],
"end": [
3,
6
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted 'b' identifier"
},
{
"span": {
"delete": {
"start": [
4,
4
],
"end": [
4,
5
]
}
},
"summary": "Deleted 'c' identifier"
},
{
"span": {
"delete": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Deleted '2'"
},
{
"span": {
"delete": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Deleted '3'"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted 'd' identifier"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
7
]
}
},
"summary": "Deleted '3'"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted 'e' identifier"
},
{
"span": {
"delete": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Deleted '1'"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
"sha1": "0319a9a868b5b63b4ae8c25942cfda89029f6300",
"gitDir": "test/corpus/repos/go",
"sha2": "efa756e039fea91d68be84d385984966ae45165a"
}
,{
"testCaseDescription": "go-assignment-statements-delete-rest-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
3,
1
]
}
]
},
"summary": "Replaced 'main' module with 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
"sha1": "efa756e039fea91d68be84d385984966ae45165a",
"gitDir": "test/corpus/repos/go",
"sha2": "df19efe0f9c7778e2d07b53ee7eb0c542af2d71c"
}]