mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
635 lines
20 KiB
JSON
635 lines
20 KiB
JSON
[{
|
|
"testCaseDescription": "go-const-with-implicit-values-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"const-with-implicit-values.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'zero' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'one' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'two' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"const-with-implicit-values.go"
|
|
],
|
|
"sha1": "475deec198e080301901a65778b6e2ee6255ee60",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "ac39692dc8e60b73af4c24df31d58e96a8cf4ae4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-const-with-implicit-values-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"const-with-implicit-values.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'zero' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'one' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'two' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"const-with-implicit-values.go"
|
|
],
|
|
"sha1": "ac39692dc8e60b73af4c24df31d58e96a8cf4ae4",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "784d367a0e4ba45ac0659e22c03a3f34d3c5394c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-const-with-implicit-values-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"const-with-implicit-values.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
3
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'zero' identifier in the zero variable of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
5,
|
|
2
|
|
],
|
|
"end": [
|
|
5,
|
|
3
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
5,
|
|
2
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'one' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
6,
|
|
2
|
|
],
|
|
"end": [
|
|
6,
|
|
3
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
6,
|
|
2
|
|
],
|
|
"end": [
|
|
6,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'c' identifier with the 'two' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"const-with-implicit-values.go"
|
|
],
|
|
"sha1": "784d367a0e4ba45ac0659e22c03a3f34d3c5394c",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "d6fea3f4d2a09fb831635228ffd52e4029a66690"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-const-with-implicit-values-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"const-with-implicit-values.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
3
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'zero' identifier with the 'a' identifier in the a variable of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
5,
|
|
2
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
5,
|
|
2
|
|
],
|
|
"end": [
|
|
5,
|
|
3
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'one' identifier with the 'b' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
6,
|
|
2
|
|
],
|
|
"end": [
|
|
6,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
6,
|
|
2
|
|
],
|
|
"end": [
|
|
6,
|
|
3
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'two' identifier with the 'c' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"const-with-implicit-values.go"
|
|
],
|
|
"sha1": "d6fea3f4d2a09fb831635228ffd52e4029a66690",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "b4617614ee8c58faf89055b68cbcd640663208d3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-const-with-implicit-values-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"const-with-implicit-values.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'zero' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'one' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'two' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"const-with-implicit-values.go"
|
|
],
|
|
"sha1": "b4617614ee8c58faf89055b68cbcd640663208d3",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "0c0cd503b0f4d88a94cbee4fa7ad2b973e8960ac"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-const-with-implicit-values-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"const-with-implicit-values.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'zero' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'one' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'two' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"const-with-implicit-values.go"
|
|
],
|
|
"sha1": "0c0cd503b0f4d88a94cbee4fa7ad2b973e8960ac",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "295241a104dec9ecba7fa69ba2012d53d4f88618"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-const-with-implicit-values-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"const-with-implicit-values.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"const-with-implicit-values.go"
|
|
],
|
|
"sha1": "295241a104dec9ecba7fa69ba2012d53d4f88618",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "bd92d81359528aecb248c2875d9cb620f555c9a7"
|
|
}]
|