mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
449 lines
15 KiB
JSON
449 lines
15 KiB
JSON
[{
|
|
"testCaseDescription": "go-imaginary-literals-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"imaginary-literals.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'variable' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"imaginary-literals.go"
|
|
],
|
|
"sha1": "a77421daec2a2b057cbc6c4600168313f7967363",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "86512f969d13ad48e74788a6666cb382d4d100a8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-imaginary-literals-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"imaginary-literals.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'variable' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'variable' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"imaginary-literals.go"
|
|
],
|
|
"sha1": "86512f969d13ad48e74788a6666cb382d4d100a8",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "452042aace37723f34917396ee4f38d1e9f0df87"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-imaginary-literals-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"imaginary-literals.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '02i' imaginary_literal with the '01i' imaginary_literal in the const (\na = 01i\nb = 1.e+100i\n) variable of the 'main' module statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '02i' imaginary_literal with the '01i' imaginary_literal in the const (\na = 01i\nb = 1.e+100i\n) variable of the 'main' module statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
5,
|
|
5
|
|
],
|
|
"end": [
|
|
5,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
5,
|
|
5
|
|
],
|
|
"end": [
|
|
5,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '1.e+103i' imaginary_literal with the '1.e+100i' imaginary_literal in the const (\na = 01i\nb = 1.e+100i\n) variable of the 'main' module statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
5,
|
|
5
|
|
],
|
|
"end": [
|
|
5,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
5,
|
|
5
|
|
],
|
|
"end": [
|
|
5,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '1.e+103i' imaginary_literal with the '1.e+100i' imaginary_literal in the const (\na = 01i\nb = 1.e+100i\n) variable of the 'main' module statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"imaginary-literals.go"
|
|
],
|
|
"sha1": "452042aace37723f34917396ee4f38d1e9f0df87",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "046dfbd242abaa9537a400db74cfe6f37add22e1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-imaginary-literals-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"imaginary-literals.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '01i' imaginary_literal with the '02i' imaginary_literal in the const (\na = 02i\nb = 1.e+103i\n) variable of the 'main' module statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '01i' imaginary_literal with the '02i' imaginary_literal in the const (\na = 02i\nb = 1.e+103i\n) variable of the 'main' module statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
5,
|
|
5
|
|
],
|
|
"end": [
|
|
5,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
5,
|
|
5
|
|
],
|
|
"end": [
|
|
5,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '1.e+100i' imaginary_literal with the '1.e+103i' imaginary_literal in the const (\na = 02i\nb = 1.e+103i\n) variable of the 'main' module statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
5,
|
|
5
|
|
],
|
|
"end": [
|
|
5,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
5,
|
|
5
|
|
],
|
|
"end": [
|
|
5,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '1.e+100i' imaginary_literal with the '1.e+103i' imaginary_literal in the const (\na = 02i\nb = 1.e+103i\n) variable of the 'main' module statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"imaginary-literals.go"
|
|
],
|
|
"sha1": "046dfbd242abaa9537a400db74cfe6f37add22e1",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "bb06ccc4c6591acf444a6916f0f98ed207ec90e8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-imaginary-literals-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"imaginary-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'variable' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'variable' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'variable' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"imaginary-literals.go"
|
|
],
|
|
"sha1": "bb06ccc4c6591acf444a6916f0f98ed207ec90e8",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "89eb47193ee859728fc3c4fabea1b7b9912a5f67"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-imaginary-literals-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"imaginary-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'variable' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"imaginary-literals.go"
|
|
],
|
|
"sha1": "89eb47193ee859728fc3c4fabea1b7b9912a5f67",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "cbb1ce832b2672cf54933256e2dc4271641f52ad"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-imaginary-literals-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"imaginary-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'variable' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"imaginary-literals.go"
|
|
],
|
|
"sha1": "cbb1ce832b2672cf54933256e2dc4271641f52ad",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "5ded7c6ce2cb364f7b9b0a77fc5631267d11fa2a"
|
|
}]
|