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