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/const-declarations.json

386 lines
12 KiB
JSON
Raw Normal View History

2016-11-01 02:23:25 +03:00
[{
"testCaseDescription": "go-const declarations-insert-test",
"expectedResult": {
"changes": {
"const-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
2016-11-01 03:59:04 +03:00
1
2016-11-01 02:23:25 +03:00
],
"end": [
3,
15
]
}
},
2016-11-01 03:59:04 +03:00
"summary": "Added the 'variable' variable"
2016-11-01 02:23:25 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations.go"
],
2016-11-01 03:59:04 +03:00
"sha1": "1fa1885457279cc6e82c4bd837bea2544b32a2e2",
2016-11-01 02:23:25 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-01 03:59:04 +03:00
"sha2": "b33dc31af4b76bce6c546b744faba1eed6f303ec"
2016-11-01 02:23:25 +03:00
}
,{
"testCaseDescription": "go-const declarations-replacement-insert-test",
"expectedResult": {
"changes": {
"const-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
2016-11-01 03:59:04 +03:00
1
2016-11-01 02:23:25 +03:00
],
"end": [
3,
22
]
}
},
2016-11-01 03:59:04 +03:00
"summary": "Added the 'variable' variable"
2016-11-01 02:23:25 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations.go"
],
2016-11-01 03:59:04 +03:00
"sha1": "b33dc31af4b76bce6c546b744faba1eed6f303ec",
2016-11-01 02:23:25 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-01 03:59:04 +03:00
"sha2": "a0b7b15f1e8340c6fb9dc4565456f7549c27022b"
2016-11-01 02:23:25 +03:00
}
,{
"testCaseDescription": "go-const declarations-delete-insert-test",
"expectedResult": {
"changes": {
"const-declarations.go": [
{
"span": {
"replace": [
{
"start": [
3,
7
],
"end": [
3,
10
]
},
{
"start": [
3,
7
],
"end": [
3,
11
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'zero' identifier"
},
{
"span": {
"delete": {
"start": [
3,
12
],
"end": [
3,
15
]
}
},
"summary": "Deleted the 'two' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
18
],
"end": [
3,
19
]
},
{
"start": [
3,
14
],
"end": [
3,
15
]
}
]
},
"summary": "Replaced '1' with '0'"
},
{
"span": {
"delete": {
"start": [
3,
21
],
"end": [
3,
22
]
}
},
"summary": "Deleted '2'"
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations.go"
],
2016-11-01 03:59:04 +03:00
"sha1": "a0b7b15f1e8340c6fb9dc4565456f7549c27022b",
2016-11-01 02:23:25 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-01 03:59:04 +03:00
"sha2": "4619a925a26e81b6d1209c92dc1e8df1a1db757b"
2016-11-01 02:23:25 +03:00
}
,{
"testCaseDescription": "go-const declarations-replacement-test",
"expectedResult": {
"changes": {
"const-declarations.go": [
{
"span": {
"replace": [
{
"start": [
3,
7
],
"end": [
3,
11
]
},
{
"start": [
3,
7
],
"end": [
3,
10
]
}
]
},
"summary": "Replaced the 'zero' identifier with the 'one' identifier"
},
{
"span": {
"insert": {
"start": [
3,
12
],
"end": [
3,
15
]
}
},
"summary": "Added the 'two' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
14
],
"end": [
3,
15
]
},
{
"start": [
3,
18
],
"end": [
3,
19
]
}
]
},
"summary": "Replaced '0' with '1'"
},
{
"span": {
"insert": {
"start": [
3,
21
],
"end": [
3,
22
]
}
},
"summary": "Added '2'"
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations.go"
],
2016-11-01 03:59:04 +03:00
"sha1": "4619a925a26e81b6d1209c92dc1e8df1a1db757b",
2016-11-01 02:23:25 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-01 03:59:04 +03:00
"sha2": "41a6ea87f5c62d21f958fff123807f74c2158413"
2016-11-01 02:23:25 +03:00
}
,{
"testCaseDescription": "go-const declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"const-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
2016-11-01 03:59:04 +03:00
1
2016-11-01 02:23:25 +03:00
],
"end": [
3,
22
]
}
},
2016-11-01 03:59:04 +03:00
"summary": "Deleted the 'variable' variable"
2016-11-01 02:23:25 +03:00
},
{
"span": {
"delete": {
"start": [
4,
2016-11-01 03:59:04 +03:00
1
2016-11-01 02:23:25 +03:00
],
"end": [
4,
15
]
}
},
2016-11-01 03:59:04 +03:00
"summary": "Deleted the 'variable' variable"
2016-11-01 02:23:25 +03:00
},
{
"span": {
"insert": {
"start": [
4,
2016-11-01 03:59:04 +03:00
1
2016-11-01 02:23:25 +03:00
],
"end": [
4,
22
]
}
},
2016-11-01 03:59:04 +03:00
"summary": "Added the 'variable' variable"
2016-11-01 02:23:25 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations.go"
],
2016-11-01 03:59:04 +03:00
"sha1": "41a6ea87f5c62d21f958fff123807f74c2158413",
2016-11-01 02:23:25 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-01 03:59:04 +03:00
"sha2": "41fd81a20db5b09ef22d9ca39f375669cf030428"
2016-11-01 02:23:25 +03:00
}
,{
"testCaseDescription": "go-const declarations-delete-test",
"expectedResult": {
"changes": {
"const-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
2016-11-01 03:59:04 +03:00
1
2016-11-01 02:23:25 +03:00
],
"end": [
3,
15
]
}
},
2016-11-01 03:59:04 +03:00
"summary": "Deleted the 'variable' variable"
2016-11-01 02:23:25 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations.go"
],
2016-11-01 03:59:04 +03:00
"sha1": "41fd81a20db5b09ef22d9ca39f375669cf030428",
2016-11-01 02:23:25 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-01 03:59:04 +03:00
"sha2": "596a3aa98863bc7bfc3532867c2bbdb7d4363a1f"
2016-11-01 02:23:25 +03:00
}
,{
"testCaseDescription": "go-const declarations-delete-rest-test",
"expectedResult": {
"changes": {
"const-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
2016-11-01 03:59:04 +03:00
1
2016-11-01 02:23:25 +03:00
],
"end": [
3,
22
]
}
},
2016-11-01 03:59:04 +03:00
"summary": "Deleted the 'variable' variable"
2016-11-01 02:23:25 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations.go"
],
2016-11-01 03:59:04 +03:00
"sha1": "596a3aa98863bc7bfc3532867c2bbdb7d4363a1f",
2016-11-01 02:23:25 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-01 03:59:04 +03:00
"sha2": "602ed5a76cbb85535ad82a1f61ef44f10eaa49bc"
2016-11-01 02:23:25 +03:00
}]