1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/go/const-with-implicit-values.json

635 lines
21 KiB
JSON
Raw Normal View History

2016-11-02 17:50:05 +03:00
[{
"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 'const (\n zero = iota\n one\n two\n )' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Added the 'const (\n zero = iota\n one\n two\n )' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Added the 'const (\n zero = iota\n one\n two\n )' variable"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "ca44feac79eebf52dd47dd67b55075a09cf2fea8",
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "8608639101229b5dbc6dee3fcc90f538d341e8f7"
2016-11-02 17:50:05 +03:00
}
,{
"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 'const (\n a = iota\n b\n c\n )' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Added the 'const (\n a = iota\n b\n c\n )' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Added the 'const (\n a = iota\n b\n c\n )' variable"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Added the 'const (\n zero = iota\n one\n two\n )' variable"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Added the 'const (\n zero = iota\n one\n two\n )' variable"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Added the 'const (\n zero = iota\n one\n two\n )' variable"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "8608639101229b5dbc6dee3fcc90f538d341e8f7",
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "8650869481c5f88510914e47b1a7e227f688f222"
2016-11-02 17:50:05 +03:00
}
,{
"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 const (\n zero = iota\n one\n two\n ) variable of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"replace": [
{
"start": [
5,
2
],
"end": [
5,
3
]
},
{
"start": [
5,
2
],
"end": [
5,
5
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'one' identifier in the const (\n zero = iota\n one\n two\n ) variable of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"replace": [
{
"start": [
6,
2
],
"end": [
6,
3
]
},
{
"start": [
6,
2
],
"end": [
6,
5
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'two' identifier in the const (\n zero = iota\n one\n two\n ) variable of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "8650869481c5f88510914e47b1a7e227f688f222",
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "04a9a39399a279cfc841d6ff0dde512710834fb7"
2016-11-02 17:50:05 +03:00
}
,{
"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 const (\n a = iota\n b\n c\n ) variable of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"replace": [
{
"start": [
5,
2
],
"end": [
5,
5
]
},
{
"start": [
5,
2
],
"end": [
5,
3
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'b' identifier in the const (\n a = iota\n b\n c\n ) variable of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"replace": [
{
"start": [
6,
2
],
"end": [
6,
5
]
},
{
"start": [
6,
2
],
"end": [
6,
3
]
}
]
},
"summary": "Replaced the 'two' identifier with the 'c' identifier in the const (\n a = iota\n b\n c\n ) variable of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "04a9a39399a279cfc841d6ff0dde512710834fb7",
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "95f846d80b29447f1c9290ba0d693ce6b35a92f3"
2016-11-02 17:50:05 +03:00
}
,{
"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 'const (\n a = iota\n b\n c\n )' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'const (\n a = iota\n b\n c\n )' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'const (\n a = iota\n b\n c\n )' variable"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Deleted the 'const (\n zero = iota\n one\n two\n )' variable"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Deleted the 'const (\n zero = iota\n one\n two\n )' variable"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Deleted the 'const (\n zero = iota\n one\n two\n )' variable"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Added the 'const (\n a = iota\n b\n c\n )' variable"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Added the 'const (\n a = iota\n b\n c\n )' variable"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Added the 'const (\n a = iota\n b\n c\n )' variable"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "95f846d80b29447f1c9290ba0d693ce6b35a92f3",
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "49f828ce0fdc9a03d0e042396f8621767af0d5b3"
2016-11-02 17:50:05 +03:00
}
,{
"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 'const (\n zero = iota\n one\n two\n )' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'const (\n zero = iota\n one\n two\n )' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'const (\n zero = iota\n one\n two\n )' variable"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "49f828ce0fdc9a03d0e042396f8621767af0d5b3",
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "aa73868cbf19e7f1f4e011b81ef2cdfa5e0229ee"
2016-11-02 17:50:05 +03:00
}
,{
"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 'const (\n a = iota\n b\n c\n )' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'const (\n a = iota\n b\n c\n )' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'const (\n a = iota\n b\n c\n )' variable"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "aa73868cbf19e7f1f4e011b81ef2cdfa5e0229ee",
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "6854d14b3fbd44b2760df78c70c200e923aa3ec0"
2016-11-02 17:50:05 +03:00
}]