1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 07:25:44 +03:00
semantic/test/corpus/diff-summaries/go/string-literals.json

569 lines
19 KiB
JSON

[{
"testCaseDescription": "go-string-literals-insert-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'const (\na = \"0\"\nb = \"hello world\"\n)' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'const (\na = \"0\"\nb = \"hello world\"\n)' variable"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"sha1": "424e2388d27fd2f4d90e9512a6c7f3c24dfa7f59",
"gitDir": "test/corpus/repos/go",
"sha2": "6a528c331ddf8916114e6c1503ff650b0c2af6d4"
}
,{
"testCaseDescription": "go-string-literals-replacement-insert-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'const (\na = \"2\"\nb = \"hi\"\n)' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'const (\na = \"2\"\nb = \"hi\"\n)' variable"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'const (\na = \"0\"\nb = \"hello world\"\n)' variable"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'const (\na = \"0\"\nb = \"hello world\"\n)' variable"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"sha1": "6a528c331ddf8916114e6c1503ff650b0c2af6d4",
"gitDir": "test/corpus/repos/go",
"sha2": "f3e3962be87866cf7f93c0a737d120c04b4876dd"
}
,{
"testCaseDescription": "go-string-literals-delete-insert-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
8
]
},
{
"start": [
4,
5
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the \"2\" string with the \"0\" string in the const (\na = \"0\"\nb = \"hello world\"\n) variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
8
]
},
{
"start": [
4,
5
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the \"2\" string with the \"0\" string in the const (\na = \"0\"\nb = \"hello world\"\n) variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
9
]
},
{
"start": [
5,
5
],
"end": [
5,
18
]
}
]
},
"summary": "Replaced the \"hi\" string with the \"hello world\" string in the const (\na = \"0\"\nb = \"hello world\"\n) variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
9
]
},
{
"start": [
5,
5
],
"end": [
5,
18
]
}
]
},
"summary": "Replaced the \"hi\" string with the \"hello world\" string in the const (\na = \"0\"\nb = \"hello world\"\n) variable of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"sha1": "f3e3962be87866cf7f93c0a737d120c04b4876dd",
"gitDir": "test/corpus/repos/go",
"sha2": "57dcbe046e3f8ff0a868b386318eb83a958be050"
}
,{
"testCaseDescription": "go-string-literals-replacement-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
8
]
},
{
"start": [
4,
5
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the \"0\" string with the \"2\" string in the const (\na = \"2\"\nb = \"hi\"\n) variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
8
]
},
{
"start": [
4,
5
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the \"0\" string with the \"2\" string in the const (\na = \"2\"\nb = \"hi\"\n) variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
18
]
},
{
"start": [
5,
5
],
"end": [
5,
9
]
}
]
},
"summary": "Replaced the \"hello world\" string with the \"hi\" string in the const (\na = \"2\"\nb = \"hi\"\n) variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
18
]
},
{
"start": [
5,
5
],
"end": [
5,
9
]
}
]
},
"summary": "Replaced the \"hello world\" string with the \"hi\" string in the const (\na = \"2\"\nb = \"hi\"\n) variable of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"sha1": "57dcbe046e3f8ff0a868b386318eb83a958be050",
"gitDir": "test/corpus/repos/go",
"sha2": "068622276d63ccc76158d873573a9e5636bae296"
}
,{
"testCaseDescription": "go-string-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'const (\na = \"2\"\nb = \"hi\"\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'const (\na = \"2\"\nb = \"hi\"\n)' variable"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'const (\na = \"0\"\nb = \"hello world\"\n)' variable"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'const (\na = \"0\"\nb = \"hello world\"\n)' variable"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'const (\na = \"2\"\nb = \"hi\"\n)' variable"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'const (\na = \"2\"\nb = \"hi\"\n)' variable"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"sha1": "068622276d63ccc76158d873573a9e5636bae296",
"gitDir": "test/corpus/repos/go",
"sha2": "cdb36c847c6e725f2814e06c1eda2ca4c411831d"
}
,{
"testCaseDescription": "go-string-literals-delete-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'const (\na = \"0\"\nb = \"hello world\"\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'const (\na = \"0\"\nb = \"hello world\"\n)' variable"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"sha1": "cdb36c847c6e725f2814e06c1eda2ca4c411831d",
"gitDir": "test/corpus/repos/go",
"sha2": "ff45ee189c30a707023ff356426ba3b30b609b69"
}
,{
"testCaseDescription": "go-string-literals-delete-rest-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'const (\na = \"2\"\nb = \"hi\"\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'const (\na = \"2\"\nb = \"hi\"\n)' variable"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"sha1": "ff45ee189c30a707023ff356426ba3b30b609b69",
"gitDir": "test/corpus/repos/go",
"sha2": "d30b530285e291c61e905294debc16aef5899d90"
}]