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/short-var-declarations.json
2016-11-02 15:43:26 -04:00

683 lines
22 KiB
JSON

[{
"testCaseDescription": "go-short-var-declarations-insert-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Added 'a' identifier"
},
{
"span": {
"insert": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Added 'b' identifier"
},
{
"span": {
"insert": {
"start": [
3,
9
],
"end": [
3,
10
]
}
},
"summary": "Added '1'"
},
{
"span": {
"insert": {
"start": [
3,
12
],
"end": [
3,
13
]
}
},
"summary": "Added '2'"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"sha1": "363b18b65c0f2fcb1f36265bcbcc40d91cfb0e60",
"gitDir": "test/corpus/repos/go",
"sha2": "462e8fc6088dcc34140bed7988b414a6ede398c2"
}
,{
"testCaseDescription": "go-short-var-declarations-replacement-insert-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
4,
1
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module with the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"sha1": "462e8fc6088dcc34140bed7988b414a6ede398c2",
"gitDir": "test/corpus/repos/go",
"sha2": "72760d747425407ab9f88f653eaf49a0f2a619fb"
}
,{
"testCaseDescription": "go-short-var-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"short-var-declarations.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": [
3,
4
],
"end": [
3,
5
]
},
{
"start": [
3,
4
],
"end": [
3,
5
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
9
],
"end": [
3,
10
]
},
{
"start": [
3,
9
],
"end": [
3,
10
]
}
]
},
"summary": "Replaced '3' with '1'"
},
{
"span": {
"replace": [
{
"start": [
3,
12
],
"end": [
3,
13
]
},
{
"start": [
3,
12
],
"end": [
3,
13
]
}
]
},
"summary": "Replaced '4' with '2'"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"sha1": "72760d747425407ab9f88f653eaf49a0f2a619fb",
"gitDir": "test/corpus/repos/go",
"sha2": "e267372d7503d4863d2bc785efc1431467edf59d"
}
,{
"testCaseDescription": "go-short-var-declarations-replacement-test",
"expectedResult": {
"changes": {
"short-var-declarations.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": [
3,
4
],
"end": [
3,
5
]
},
{
"start": [
3,
4
],
"end": [
3,
5
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
9
],
"end": [
3,
10
]
},
{
"start": [
3,
9
],
"end": [
3,
10
]
}
]
},
"summary": "Replaced '1' with '3'"
},
{
"span": {
"replace": [
{
"start": [
3,
12
],
"end": [
3,
13
]
},
{
"start": [
3,
12
],
"end": [
3,
13
]
}
]
},
"summary": "Replaced '2' with '4'"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"sha1": "e267372d7503d4863d2bc785efc1431467edf59d",
"gitDir": "test/corpus/repos/go",
"sha2": "dafde27850b604b5ca1f232799f634e7a412a9e7"
}
,{
"testCaseDescription": "go-short-var-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Deleted 'x' identifier"
},
{
"span": {
"delete": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Deleted 'y' identifier"
},
{
"span": {
"delete": {
"start": [
3,
9
],
"end": [
3,
10
]
}
},
"summary": "Deleted '3'"
},
{
"span": {
"delete": {
"start": [
3,
12
],
"end": [
3,
13
]
}
},
"summary": "Deleted '4'"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted 'a' identifier"
},
{
"span": {
"delete": {
"start": [
4,
4
],
"end": [
4,
5
]
}
},
"summary": "Deleted 'b' identifier"
},
{
"span": {
"delete": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"delete": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Deleted '2'"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added 'x' identifier"
},
{
"span": {
"insert": {
"start": [
4,
4
],
"end": [
4,
5
]
}
},
"summary": "Added 'y' identifier"
},
{
"span": {
"insert": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Added '3'"
},
{
"span": {
"insert": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Added '4'"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"sha1": "dafde27850b604b5ca1f232799f634e7a412a9e7",
"gitDir": "test/corpus/repos/go",
"sha2": "8a4d19c8fbb9e60cc61b2475cc16c627467f2dbe"
}
,{
"testCaseDescription": "go-short-var-declarations-delete-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
4,
1
]
}
]
},
"summary": "Replaced 'main' module with 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"sha1": "8a4d19c8fbb9e60cc61b2475cc16c627467f2dbe",
"gitDir": "test/corpus/repos/go",
"sha2": "f6d9b8e33770710b13404200b6959aab8ed09e1d"
}
,{
"testCaseDescription": "go-short-var-declarations-delete-rest-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Deleted 'x' identifier"
},
{
"span": {
"delete": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Deleted 'y' identifier"
},
{
"span": {
"delete": {
"start": [
3,
9
],
"end": [
3,
10
]
}
},
"summary": "Deleted '3'"
},
{
"span": {
"delete": {
"start": [
3,
12
],
"end": [
3,
13
]
}
},
"summary": "Deleted '4'"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"sha1": "f6d9b8e33770710b13404200b6959aab8ed09e1d",
"gitDir": "test/corpus/repos/go",
"sha2": "1f5bf4add8472f50c1ba70342cbd3ea5707fc2db"
}]