2016-11-02 21:37:30 +03:00
|
|
|
[{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-struct-literals-setup-test",
|
2016-11-02 21:37:30 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"struct-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-08 00:12:58 +03:00
|
|
|
"insert": {
|
2016-12-07 23:41:28 +03:00
|
|
|
"start": [
|
2016-12-08 00:12:58 +03:00
|
|
|
1,
|
2016-12-07 23:41:28 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2017-01-24 23:09:28 +03:00
|
|
|
1,
|
|
|
|
13
|
2016-12-07 23:41:28 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-08 00:12:58 +03:00
|
|
|
"summary": "Added the 'main' module"
|
2017-01-24 23:09:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'main' function"
|
2016-11-02 21:37:30 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"struct-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/struct-literals.go b/struct-literals.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index e69de29b..79058077 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/struct-literals.go",
|
|
|
|
"+++ b/struct-literals.go",
|
2016-12-08 00:12:58 +03:00
|
|
|
"@@ -0,0 +1,5 @@",
|
|
|
|
"+package main",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+",
|
2016-12-08 00:12:58 +03:00
|
|
|
"+func main() {",
|
|
|
|
"+",
|
|
|
|
"+}"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 21:37:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-27 22:50:27 +03:00
|
|
|
"shas": "784c305dce671ee357e2030f8c800c2e6ea35eb6..f69b75e2ec2097345af8cc4352ef7583372639ce"
|
2016-11-02 21:37:30 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-struct-literals-insert-test",
|
2016-11-02 21:37:30 +03:00
|
|
|
"expectedResult": {
|
2016-12-07 23:41:28 +03:00
|
|
|
"changes": {
|
|
|
|
"struct-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
2017-01-10 23:09:09 +03:00
|
|
|
7
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added the 's1' var assignment in the main function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
2017-01-10 23:09:09 +03:00
|
|
|
7
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
32
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added the 's2' var assignment in the main function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
9,
|
2017-01-10 23:09:09 +03:00
|
|
|
7
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added the 's3' var assignment in the main function"
|
2016-12-07 23:41:28 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"struct-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/struct-literals.go b/struct-literals.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index 79058077..e6fd4f15 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/struct-literals.go",
|
|
|
|
"+++ b/struct-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,5 +1,10 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
|
|
|
"-",
|
2016-11-11 00:19:53 +03:00
|
|
|
"+const s1 = Person{",
|
|
|
|
"+name: \"Frank\",",
|
|
|
|
"+Age: \"5 months\",",
|
|
|
|
"+}",
|
|
|
|
"+const s2 = struct{i int;}{i: 5}",
|
|
|
|
"+const s3 = time.Time{}",
|
2016-12-02 00:03:52 +03:00
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 21:37:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-27 22:50:27 +03:00
|
|
|
"shas": "f69b75e2ec2097345af8cc4352ef7583372639ce..a0a1d5d31a256b49f421687cb86869a4f72d6b7c"
|
2016-11-02 21:37:30 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-struct-literals-replacement-test",
|
|
|
|
"expectedResult": {
|
2016-12-07 23:41:28 +03:00
|
|
|
"changes": {
|
|
|
|
"struct-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
18
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-12 02:28:58 +03:00
|
|
|
"summary": "Replaced the 'Person' identifier with the 'Dog' identifier in the s1 var assignment of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
24
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
26
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-17 23:26:07 +03:00
|
|
|
"summary": "Replaced the 'int' identifier with the 'float' identifier in the struct{i float;} struct type of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
27
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
28
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
29
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
30
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-18 21:23:54 +03:00
|
|
|
"summary": "Replaced the 'i' identifier with the 'j' identifier in the j: 6 pair of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
30
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
31
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
32
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
33
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-18 21:23:54 +03:00
|
|
|
"summary": "Replaced '5' with '6' in the j: 6 pair of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
9,
|
2017-01-17 23:26:07 +03:00
|
|
|
12
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
9,
|
2017-01-17 23:26:07 +03:00
|
|
|
12
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
22
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-17 23:26:07 +03:00
|
|
|
"summary": "Replaced the 'time.Time' qualified identifier with the 'time.Month' qualified identifier in the s3 var assignment of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"struct-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/struct-literals.go b/struct-literals.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index e6fd4f15..06724a46 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/struct-literals.go",
|
|
|
|
"+++ b/struct-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,10 +1,10 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-11 00:19:53 +03:00
|
|
|
"-const s1 = Person{",
|
|
|
|
"+const s1 = Dog{",
|
|
|
|
" name: \"Frank\",",
|
|
|
|
" Age: \"5 months\",",
|
|
|
|
" }",
|
|
|
|
"-const s2 = struct{i int;}{i: 5}",
|
|
|
|
"-const s3 = time.Time{}",
|
|
|
|
"+const s2 = struct{i float;}{j: 6}",
|
|
|
|
"+const s3 = time.Month{}",
|
2016-12-02 00:03:52 +03:00
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 21:37:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-27 22:50:27 +03:00
|
|
|
"shas": "a0a1d5d31a256b49f421687cb86869a4f72d6b7c..68da7549dc14aeb67d5bf7ac0ee1537034c10d3a"
|
2016-11-02 21:37:30 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-struct-literals-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
2016-12-07 23:41:28 +03:00
|
|
|
"changes": {
|
|
|
|
"struct-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
18
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-12 02:28:58 +03:00
|
|
|
"summary": "Replaced the 'Dog' identifier with the 'Person' identifier in the s1 var assignment of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
26
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
24
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-17 23:26:07 +03:00
|
|
|
"summary": "Replaced the 'float' identifier with the 'int' identifier in the struct{i int;} struct type of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
29
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
30
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
27
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
28
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-18 21:23:54 +03:00
|
|
|
"summary": "Replaced the 'j' identifier with the 'i' identifier in the i: 5 pair of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
32
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
33
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
30
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
31
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-18 21:23:54 +03:00
|
|
|
"summary": "Replaced '6' with '5' in the i: 5 pair of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
9,
|
2017-01-17 23:26:07 +03:00
|
|
|
12
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
22
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
9,
|
2017-01-17 23:26:07 +03:00
|
|
|
12
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-17 23:26:07 +03:00
|
|
|
"summary": "Replaced the 'time.Month' qualified identifier with the 'time.Time' qualified identifier in the s3 var assignment of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"struct-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/struct-literals.go b/struct-literals.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index 06724a46..e6fd4f15 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/struct-literals.go",
|
|
|
|
"+++ b/struct-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,10 +1,10 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-11 00:19:53 +03:00
|
|
|
"-const s1 = Dog{",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+const s1 = Person{",
|
2016-11-11 00:19:53 +03:00
|
|
|
" name: \"Frank\",",
|
|
|
|
" Age: \"5 months\",",
|
|
|
|
" }",
|
2016-12-02 00:03:52 +03:00
|
|
|
"-const s2 = struct{i float;}{j: 6}",
|
|
|
|
"-const s3 = time.Month{}",
|
|
|
|
"+const s2 = struct{i int;}{i: 5}",
|
|
|
|
"+const s3 = time.Time{}",
|
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 21:37:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-27 22:50:27 +03:00
|
|
|
"shas": "68da7549dc14aeb67d5bf7ac0ee1537034c10d3a..fda2e7d5f043c749df808d5cb3fb54d811a33866"
|
2016-11-02 21:37:30 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-struct-literals-delete-insert-test",
|
2016-11-02 21:37:30 +03:00
|
|
|
"expectedResult": {
|
2016-12-07 23:41:28 +03:00
|
|
|
"changes": {
|
|
|
|
"struct-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
2017-01-10 23:09:09 +03:00
|
|
|
7
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted the 's1' var assignment in the main function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
8,
|
2017-01-10 23:09:09 +03:00
|
|
|
7
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
32
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted the 's2' var assignment in the main function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
9,
|
2017-01-10 23:09:09 +03:00
|
|
|
7
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted the 's3' var assignment in the main function"
|
2016-12-07 23:41:28 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"struct-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/struct-literals.go b/struct-literals.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index e6fd4f15..79058077 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/struct-literals.go",
|
|
|
|
"+++ b/struct-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,10 +1,5 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-11 00:19:53 +03:00
|
|
|
"-const s1 = Person{",
|
|
|
|
"-name: \"Frank\",",
|
|
|
|
"-Age: \"5 months\",",
|
|
|
|
"-}",
|
|
|
|
"-const s2 = struct{i int;}{i: 5}",
|
|
|
|
"-const s3 = time.Time{}",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+",
|
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 21:37:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-27 22:50:27 +03:00
|
|
|
"shas": "fda2e7d5f043c749df808d5cb3fb54d811a33866..de730df08fbb32c6d44abd283e85a1ecc92c3f20"
|
2016-11-02 21:37:30 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-struct-literals-teardown-test",
|
2016-11-02 21:37:30 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"struct-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2017-01-24 23:09:28 +03:00
|
|
|
1,
|
|
|
|
13
|
2016-11-02 21:37:30 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'main' module"
|
2017-01-24 23:09:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'main' function"
|
2016-11-02 21:37:30 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"struct-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/struct-literals.go b/struct-literals.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index 79058077..e69de29b 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/struct-literals.go",
|
|
|
|
"+++ b/struct-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,5 +0,0 @@",
|
|
|
|
"-package main",
|
|
|
|
"-",
|
|
|
|
"-func main() {",
|
|
|
|
"-",
|
|
|
|
"-}"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 21:37:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-27 22:50:27 +03:00
|
|
|
"shas": "de730df08fbb32c6d44abd283e85a1ecc92c3f20..fd5f6aa8df9b10cae791dcd150bffd95be9549b9"
|
2016-11-02 21:37:30 +03:00
|
|
|
}]
|