2016-11-01 23:33:43 +03:00
|
|
|
[{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-int-literals-insert-test",
|
2016-11-01 23:33:43 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go": [
|
2016-11-01 23:33:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Added the 'identifier' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'number' variable"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go"
|
2016-11-01 23:33:43 +03:00
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "7d873f0d5579c52294d6b425bd5d9729ac1782e1",
|
2016-11-01 23:33:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "58e397a91e98116eca2623f4194a33e9b3a8a96b"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-int-literals-replacement-insert-test",
|
2016-11-01 23:33:43 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go": [
|
2016-11-01 23:33:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Added the 'identifier' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'number' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'identifier' variable"
|
2016-11-01 23:33:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Added the 'number' variable"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go"
|
2016-11-01 23:33:43 +03:00
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "58e397a91e98116eca2623f4194a33e9b3a8a96b",
|
2016-11-01 23:33:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "dcbb201fb43382e157a6cd1390792a645cff048d"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-int-literals-delete-insert-test",
|
2016-11-01 23:33:43 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go": [
|
2016-11-01 23:33:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Replaced '5' with '2' in the identifier variable of the 'main' module"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced '4' with '1' in the number variable of the 'main' module"
|
2016-11-01 23:33:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Replaced '6' with '3' in the number variable of the 'main' module"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go"
|
2016-11-01 23:33:43 +03:00
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "dcbb201fb43382e157a6cd1390792a645cff048d",
|
2016-11-01 23:33:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "3a72aeb457802abb37426fecedabaedefec4edaf"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-int-literals-replacement-test",
|
2016-11-01 23:33:43 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go": [
|
2016-11-01 23:33:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Replaced '2' with '5' in the identifier variable of the 'main' module"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced '1' with '4' in the number variable of the 'main' module"
|
2016-11-01 23:33:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Replaced '3' with '6' in the number variable of the 'main' module"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go"
|
2016-11-01 23:33:43 +03:00
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "3a72aeb457802abb37426fecedabaedefec4edaf",
|
2016-11-01 23:33:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "de6a6a16a83928a81e5cb1b3ceb1d7abe24368d8"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-int-literals-delete-replacement-test",
|
2016-11-01 23:33:43 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go": [
|
2016-11-01 23:33:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Deleted the 'identifier' variable"
|
2016-11-01 23:33:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
2016-11-02 22:43:26 +03:00
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'number' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'identifier' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'number' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
2016-11-01 23:33:43 +03:00
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Added the 'identifier' variable"
|
2016-11-01 23:33:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Added the 'number' variable"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go"
|
2016-11-01 23:33:43 +03:00
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "de6a6a16a83928a81e5cb1b3ceb1d7abe24368d8",
|
2016-11-01 23:33:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "2f7484fbdf31b527f96f7d42cb7f395854307756"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-int-literals-delete-test",
|
2016-11-01 23:33:43 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go": [
|
2016-11-01 23:33:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Deleted the 'identifier' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'number' variable"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go"
|
2016-11-01 23:33:43 +03:00
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "2f7484fbdf31b527f96f7d42cb7f395854307756",
|
2016-11-01 23:33:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "318de8d537443eab2f71a9666927b7e7a1b674df"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-int-literals-delete-rest-test",
|
2016-11-01 23:33:43 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go": [
|
2016-11-01 23:33:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Deleted the 'identifier' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'number' variable"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go"
|
2016-11-01 23:33:43 +03:00
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "318de8d537443eab2f71a9666927b7e7a1b674df",
|
2016-11-01 23:33:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "b320a69e5c137c5545033f688550f587c255cd27"
|
2016-11-01 23:33:43 +03:00
|
|
|
}]
|