1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/go/select-statements.json
2016-11-10 16:19:53 -05:00

2228 lines
70 KiB
JSON

[{
"testCaseDescription": "go-select-statements-insert-test",
"expectedResult": {
"changes": {
"select-statements.go": [
{
"span": {
"insert": {
"start": [
2,
8
],
"end": [
2,
9
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
2,
15
],
"end": [
2,
16
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
3,
5
],
"end": [
3,
12
]
}
},
"summary": "Added the 'println' identifier"
},
{
"span": {
"insert": {
"start": [
3,
13
],
"end": [
3,
14
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
4,
8
],
"end": [
4,
9
]
}
},
"summary": "Added the 'y' identifier"
},
{
"span": {
"insert": {
"start": [
4,
13
],
"end": [
4,
14
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
5,
5
],
"end": [
5,
12
]
}
},
"summary": "Added the 'println' identifier"
},
{
"span": {
"insert": {
"start": [
5,
13
],
"end": [
5,
14
]
}
},
"summary": "Added the '5'"
},
{
"span": {
"insert": {
"start": [
6,
10
],
"end": [
6,
14
]
}
},
"summary": "Added the 'time' identifier"
},
{
"span": {
"insert": {
"start": [
6,
15
],
"end": [
6,
20
]
}
},
"summary": "Added the 'After' identifier"
},
{
"span": {
"insert": {
"start": [
6,
21
],
"end": [
6,
22
]
}
},
"summary": "Added the '1'"
},
{
"span": {
"insert": {
"start": [
7,
5
],
"end": [
7,
12
]
}
},
"summary": "Added the 'println' identifier"
},
{
"span": {
"insert": {
"start": [
7,
13
],
"end": [
7,
14
]
}
},
"summary": "Added the '6'"
},
{
"span": {
"insert": {
"start": [
8,
3
],
"end": [
8,
10
]
}
},
"summary": "Added the 'default' communication_case"
},
{
"span": {
"insert": {
"start": [
9,
5
],
"end": [
9,
11
]
}
},
"summary": "Added the 'empty' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"select-statements.go"
],
"patch": [
"diff --git a/select-statements.go b/select-statements.go",
"index e69de29..7fe1c0b 100644",
"--- a/select-statements.go",
"+++ b/select-statements.go",
"@@ -0,0 +1,10 @@",
"+select {",
"+ case x := <-c:",
"+ println(x)",
"+ case y <- c:",
"+ println(5)",
"+ case <-time.After(1):",
"+ println(6)",
"+ default:",
"+ return",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "e544e711890744c45f9b49604be9c175422f7e15..aeffeb8d68826e213ea01226ec8bc50684bdd0d9"
}
,{
"testCaseDescription": "go-select-statements-replacement-insert-test",
"expectedResult": {
"changes": {
"select-statements.go": [
{
"span": {
"insert": {
"start": [
2,
8
],
"end": [
2,
9
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
2,
15
],
"end": [
2,
16
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
3,
5
],
"end": [
3,
12
]
}
},
"summary": "Added the 'println' identifier"
},
{
"span": {
"insert": {
"start": [
3,
13
],
"end": [
3,
14
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
4,
8
],
"end": [
4,
9
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
4,
13
],
"end": [
4,
14
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
5,
5
],
"end": [
5,
12
]
}
},
"summary": "Added the 'println' identifier"
},
{
"span": {
"insert": {
"start": [
5,
13
],
"end": [
5,
14
]
}
},
"summary": "Added the '5'"
},
{
"span": {
"insert": {
"start": [
6,
10
],
"end": [
6,
14
]
}
},
"summary": "Added the 'time' identifier"
},
{
"span": {
"insert": {
"start": [
6,
15
],
"end": [
6,
20
]
}
},
"summary": "Added the 'After' identifier"
},
{
"span": {
"insert": {
"start": [
6,
21
],
"end": [
6,
22
]
}
},
"summary": "Added the '2'"
},
{
"span": {
"insert": {
"start": [
7,
5
],
"end": [
7,
12
]
}
},
"summary": "Added the 'println' identifier"
},
{
"span": {
"insert": {
"start": [
7,
13
],
"end": [
7,
14
]
}
},
"summary": "Added the '6'"
},
{
"span": {
"insert": {
"start": [
8,
3
],
"end": [
8,
10
]
}
},
"summary": "Added the 'default' communication_case"
},
{
"span": {
"insert": {
"start": [
9,
5
],
"end": [
9,
11
]
}
},
"summary": "Added the 'empty' return statement"
},
{
"span": {
"insert": {
"start": [
12,
8
],
"end": [
12,
9
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
12,
15
],
"end": [
12,
16
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
13,
5
],
"end": [
13,
12
]
}
},
"summary": "Added the 'println' identifier"
},
{
"span": {
"insert": {
"start": [
13,
13
],
"end": [
13,
14
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
14,
8
],
"end": [
14,
9
]
}
},
"summary": "Added the 'y' identifier"
},
{
"span": {
"insert": {
"start": [
14,
13
],
"end": [
14,
14
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
15,
5
],
"end": [
15,
12
]
}
},
"summary": "Added the 'println' identifier"
},
{
"span": {
"insert": {
"start": [
15,
13
],
"end": [
15,
14
]
}
},
"summary": "Added the '5'"
},
{
"span": {
"insert": {
"start": [
16,
10
],
"end": [
16,
14
]
}
},
"summary": "Added the 'time' identifier"
},
{
"span": {
"insert": {
"start": [
16,
15
],
"end": [
16,
20
]
}
},
"summary": "Added the 'After' identifier"
},
{
"span": {
"insert": {
"start": [
16,
21
],
"end": [
16,
22
]
}
},
"summary": "Added the '1'"
},
{
"span": {
"insert": {
"start": [
17,
5
],
"end": [
17,
12
]
}
},
"summary": "Added the 'println' identifier"
},
{
"span": {
"insert": {
"start": [
17,
13
],
"end": [
17,
14
]
}
},
"summary": "Added the '6'"
},
{
"span": {
"insert": {
"start": [
18,
3
],
"end": [
18,
10
]
}
},
"summary": "Added the 'default' communication_case"
},
{
"span": {
"insert": {
"start": [
19,
5
],
"end": [
19,
11
]
}
},
"summary": "Added the 'empty' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"select-statements.go"
],
"patch": [
"diff --git a/select-statements.go b/select-statements.go",
"index 7fe1c0b..1403fc7 100644",
"--- a/select-statements.go",
"+++ b/select-statements.go",
"@@ -1,4 +1,24 @@",
" select {",
"+ case a := <-c:",
"+ println(x)",
"+ case b <- c:",
"+ println(5)",
"+ case <-time.After(2):",
"+ println(6)",
"+ default:",
"+ return",
"+}",
"+select {",
"+ case x := <-c:",
"+ println(x)",
"+ case y <- c:",
"+ println(5)",
"+ case <-time.After(1):",
"+ println(6)",
"+ default:",
"+ return",
"+}",
"+select {",
" case x := <-c:",
" println(x)",
" case y <- c:"
],
"gitDir": "test/corpus/repos/go",
"shas": "aeffeb8d68826e213ea01226ec8bc50684bdd0d9..092ef77661e7d72d3993aeaa0ca7d9b7d25778c2"
}
,{
"testCaseDescription": "go-select-statements-delete-insert-test",
"expectedResult": {
"changes": {
"select-statements.go": [
{
"span": {
"replace": [
{
"start": [
2,
8
],
"end": [
2,
9
]
},
{
"start": [
2,
8
],
"end": [
2,
9
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
9
]
},
{
"start": [
4,
8
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier"
},
{
"span": {
"replace": [
{
"start": [
6,
21
],
"end": [
6,
22
]
},
{
"start": [
6,
21
],
"end": [
6,
22
]
}
]
},
"summary": "Replaced '2' with '1'"
}
]
},
"errors": {}
},
"filePaths": [
"select-statements.go"
],
"patch": [
"diff --git a/select-statements.go b/select-statements.go",
"index 1403fc7..3e83983 100644",
"--- a/select-statements.go",
"+++ b/select-statements.go",
"@@ -1,9 +1,9 @@",
" select {",
"- case a := <-c:",
"+ case x := <-c:",
" println(x)",
"- case b <- c:",
"+ case y <- c:",
" println(5)",
"- case <-time.After(2):",
"+ case <-time.After(1):",
" println(6)",
" default:",
" return"
],
"gitDir": "test/corpus/repos/go",
"shas": "092ef77661e7d72d3993aeaa0ca7d9b7d25778c2..b09f58dd4fb0e33386e161464ecc3c2b5da1306c"
}
,{
"testCaseDescription": "go-select-statements-replacement-test",
"expectedResult": {
"changes": {
"select-statements.go": [
{
"span": {
"replace": [
{
"start": [
2,
8
],
"end": [
2,
9
]
},
{
"start": [
2,
8
],
"end": [
2,
9
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
9
]
},
{
"start": [
4,
8
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier"
},
{
"span": {
"replace": [
{
"start": [
6,
21
],
"end": [
6,
22
]
},
{
"start": [
6,
21
],
"end": [
6,
22
]
}
]
},
"summary": "Replaced '1' with '2'"
}
]
},
"errors": {}
},
"filePaths": [
"select-statements.go"
],
"patch": [
"diff --git a/select-statements.go b/select-statements.go",
"index 3e83983..1403fc7 100644",
"--- a/select-statements.go",
"+++ b/select-statements.go",
"@@ -1,9 +1,9 @@",
" select {",
"- case x := <-c:",
"+ case a := <-c:",
" println(x)",
"- case y <- c:",
"+ case b <- c:",
" println(5)",
"- case <-time.After(1):",
"+ case <-time.After(2):",
" println(6)",
" default:",
" return"
],
"gitDir": "test/corpus/repos/go",
"shas": "b09f58dd4fb0e33386e161464ecc3c2b5da1306c..3eccdfaeeaf42d130fd52c95bfd791027e39cf0f"
}
,{
"testCaseDescription": "go-select-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"select-statements.go": [
{
"span": {
"delete": {
"start": [
2,
8
],
"end": [
2,
9
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
2,
15
],
"end": [
2,
16
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
3,
5
],
"end": [
3,
12
]
}
},
"summary": "Deleted the 'println' identifier"
},
{
"span": {
"delete": {
"start": [
3,
13
],
"end": [
3,
14
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
4,
8
],
"end": [
4,
9
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
4,
13
],
"end": [
4,
14
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
5,
5
],
"end": [
5,
12
]
}
},
"summary": "Deleted the 'println' identifier"
},
{
"span": {
"delete": {
"start": [
5,
13
],
"end": [
5,
14
]
}
},
"summary": "Deleted the '5'"
},
{
"span": {
"delete": {
"start": [
6,
10
],
"end": [
6,
14
]
}
},
"summary": "Deleted the 'time' identifier"
},
{
"span": {
"delete": {
"start": [
6,
15
],
"end": [
6,
20
]
}
},
"summary": "Deleted the 'After' identifier"
},
{
"span": {
"delete": {
"start": [
6,
21
],
"end": [
6,
22
]
}
},
"summary": "Deleted the '2'"
},
{
"span": {
"delete": {
"start": [
7,
5
],
"end": [
7,
12
]
}
},
"summary": "Deleted the 'println' identifier"
},
{
"span": {
"delete": {
"start": [
7,
13
],
"end": [
7,
14
]
}
},
"summary": "Deleted the '6'"
},
{
"span": {
"delete": {
"start": [
8,
3
],
"end": [
8,
10
]
}
},
"summary": "Deleted the 'default' communication_case"
},
{
"span": {
"delete": {
"start": [
9,
5
],
"end": [
9,
11
]
}
},
"summary": "Deleted the 'empty' return statement"
},
{
"span": {
"delete": {
"start": [
12,
8
],
"end": [
12,
9
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
12,
15
],
"end": [
12,
16
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
13,
5
],
"end": [
13,
12
]
}
},
"summary": "Deleted the 'println' identifier"
},
{
"span": {
"delete": {
"start": [
13,
13
],
"end": [
13,
14
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
14,
8
],
"end": [
14,
9
]
}
},
"summary": "Deleted the 'y' identifier"
},
{
"span": {
"delete": {
"start": [
14,
13
],
"end": [
14,
14
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
15,
5
],
"end": [
15,
12
]
}
},
"summary": "Deleted the 'println' identifier"
},
{
"span": {
"delete": {
"start": [
15,
13
],
"end": [
15,
14
]
}
},
"summary": "Deleted the '5'"
},
{
"span": {
"delete": {
"start": [
16,
10
],
"end": [
16,
14
]
}
},
"summary": "Deleted the 'time' identifier"
},
{
"span": {
"delete": {
"start": [
16,
15
],
"end": [
16,
20
]
}
},
"summary": "Deleted the 'After' identifier"
},
{
"span": {
"delete": {
"start": [
16,
21
],
"end": [
16,
22
]
}
},
"summary": "Deleted the '1'"
},
{
"span": {
"delete": {
"start": [
17,
5
],
"end": [
17,
12
]
}
},
"summary": "Deleted the 'println' identifier"
},
{
"span": {
"delete": {
"start": [
17,
13
],
"end": [
17,
14
]
}
},
"summary": "Deleted the '6'"
},
{
"span": {
"delete": {
"start": [
18,
3
],
"end": [
18,
10
]
}
},
"summary": "Deleted the 'default' communication_case"
},
{
"span": {
"delete": {
"start": [
19,
5
],
"end": [
19,
11
]
}
},
"summary": "Deleted the 'empty' return statement"
},
{
"span": {
"insert": {
"start": [
12,
8
],
"end": [
12,
9
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
12,
15
],
"end": [
12,
16
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
13,
5
],
"end": [
13,
12
]
}
},
"summary": "Added the 'println' identifier"
},
{
"span": {
"insert": {
"start": [
13,
13
],
"end": [
13,
14
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
14,
8
],
"end": [
14,
9
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
14,
13
],
"end": [
14,
14
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
15,
5
],
"end": [
15,
12
]
}
},
"summary": "Added the 'println' identifier"
},
{
"span": {
"insert": {
"start": [
15,
13
],
"end": [
15,
14
]
}
},
"summary": "Added the '5'"
},
{
"span": {
"insert": {
"start": [
16,
10
],
"end": [
16,
14
]
}
},
"summary": "Added the 'time' identifier"
},
{
"span": {
"insert": {
"start": [
16,
15
],
"end": [
16,
20
]
}
},
"summary": "Added the 'After' identifier"
},
{
"span": {
"insert": {
"start": [
16,
21
],
"end": [
16,
22
]
}
},
"summary": "Added the '2'"
},
{
"span": {
"insert": {
"start": [
17,
5
],
"end": [
17,
12
]
}
},
"summary": "Added the 'println' identifier"
},
{
"span": {
"insert": {
"start": [
17,
13
],
"end": [
17,
14
]
}
},
"summary": "Added the '6'"
},
{
"span": {
"insert": {
"start": [
18,
3
],
"end": [
18,
10
]
}
},
"summary": "Added the 'default' communication_case"
},
{
"span": {
"insert": {
"start": [
19,
5
],
"end": [
19,
11
]
}
},
"summary": "Added the 'empty' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"select-statements.go"
],
"patch": [
"diff --git a/select-statements.go b/select-statements.go",
"index 1403fc7..234dd89 100644",
"--- a/select-statements.go",
"+++ b/select-statements.go",
"@@ -1,14 +1,4 @@",
" select {",
"- case a := <-c:",
"- println(x)",
"- case b <- c:",
"- println(5)",
"- case <-time.After(2):",
"- println(6)",
"- default:",
"- return",
"-}",
"-select {",
" case x := <-c:",
" println(x)",
" case y <- c:",
"@@ -19,11 +9,11 @@ select {",
" return",
" }",
" select {",
"- case x := <-c:",
"+ case a := <-c:",
" println(x)",
"- case y <- c:",
"+ case b <- c:",
" println(5)",
"- case <-time.After(1):",
"+ case <-time.After(2):",
" println(6)",
" default:",
" return"
],
"gitDir": "test/corpus/repos/go",
"shas": "3eccdfaeeaf42d130fd52c95bfd791027e39cf0f..ce166d19b29200e4343c9b74fee611caf2273a62"
}
,{
"testCaseDescription": "go-select-statements-delete-test",
"expectedResult": {
"changes": {
"select-statements.go": [
{
"span": {
"delete": {
"start": [
2,
8
],
"end": [
2,
9
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
2,
15
],
"end": [
2,
16
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
3,
5
],
"end": [
3,
12
]
}
},
"summary": "Deleted the 'println' identifier"
},
{
"span": {
"delete": {
"start": [
3,
13
],
"end": [
3,
14
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
4,
8
],
"end": [
4,
9
]
}
},
"summary": "Deleted the 'y' identifier"
},
{
"span": {
"delete": {
"start": [
4,
13
],
"end": [
4,
14
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
5,
5
],
"end": [
5,
12
]
}
},
"summary": "Deleted the 'println' identifier"
},
{
"span": {
"delete": {
"start": [
5,
13
],
"end": [
5,
14
]
}
},
"summary": "Deleted the '5'"
},
{
"span": {
"delete": {
"start": [
6,
10
],
"end": [
6,
14
]
}
},
"summary": "Deleted the 'time' identifier"
},
{
"span": {
"delete": {
"start": [
6,
15
],
"end": [
6,
20
]
}
},
"summary": "Deleted the 'After' identifier"
},
{
"span": {
"delete": {
"start": [
6,
21
],
"end": [
6,
22
]
}
},
"summary": "Deleted the '1'"
},
{
"span": {
"delete": {
"start": [
7,
5
],
"end": [
7,
12
]
}
},
"summary": "Deleted the 'println' identifier"
},
{
"span": {
"delete": {
"start": [
7,
13
],
"end": [
7,
14
]
}
},
"summary": "Deleted the '6'"
},
{
"span": {
"delete": {
"start": [
8,
3
],
"end": [
8,
10
]
}
},
"summary": "Deleted the 'default' communication_case"
},
{
"span": {
"delete": {
"start": [
9,
5
],
"end": [
9,
11
]
}
},
"summary": "Deleted the 'empty' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"select-statements.go"
],
"patch": [
"diff --git a/select-statements.go b/select-statements.go",
"index 234dd89..d513030 100644",
"--- a/select-statements.go",
"+++ b/select-statements.go",
"@@ -1,14 +1,4 @@",
" select {",
"- case x := <-c:",
"- println(x)",
"- case y <- c:",
"- println(5)",
"- case <-time.After(1):",
"- println(6)",
"- default:",
"- return",
"-}",
"-select {",
" case a := <-c:",
" println(x)",
" case b <- c:"
],
"gitDir": "test/corpus/repos/go",
"shas": "ce166d19b29200e4343c9b74fee611caf2273a62..6c726441703c87ad65a433fd78c98dd03874d274"
}
,{
"testCaseDescription": "go-select-statements-delete-rest-test",
"expectedResult": {
"changes": {
"select-statements.go": [
{
"span": {
"delete": {
"start": [
2,
8
],
"end": [
2,
9
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
2,
15
],
"end": [
2,
16
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
3,
5
],
"end": [
3,
12
]
}
},
"summary": "Deleted the 'println' identifier"
},
{
"span": {
"delete": {
"start": [
3,
13
],
"end": [
3,
14
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
4,
8
],
"end": [
4,
9
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
4,
13
],
"end": [
4,
14
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
5,
5
],
"end": [
5,
12
]
}
},
"summary": "Deleted the 'println' identifier"
},
{
"span": {
"delete": {
"start": [
5,
13
],
"end": [
5,
14
]
}
},
"summary": "Deleted the '5'"
},
{
"span": {
"delete": {
"start": [
6,
10
],
"end": [
6,
14
]
}
},
"summary": "Deleted the 'time' identifier"
},
{
"span": {
"delete": {
"start": [
6,
15
],
"end": [
6,
20
]
}
},
"summary": "Deleted the 'After' identifier"
},
{
"span": {
"delete": {
"start": [
6,
21
],
"end": [
6,
22
]
}
},
"summary": "Deleted the '2'"
},
{
"span": {
"delete": {
"start": [
7,
5
],
"end": [
7,
12
]
}
},
"summary": "Deleted the 'println' identifier"
},
{
"span": {
"delete": {
"start": [
7,
13
],
"end": [
7,
14
]
}
},
"summary": "Deleted the '6'"
},
{
"span": {
"delete": {
"start": [
8,
3
],
"end": [
8,
10
]
}
},
"summary": "Deleted the 'default' communication_case"
},
{
"span": {
"delete": {
"start": [
9,
5
],
"end": [
9,
11
]
}
},
"summary": "Deleted the 'empty' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"select-statements.go"
],
"patch": [
"diff --git a/select-statements.go b/select-statements.go",
"index d513030..e69de29 100644",
"--- a/select-statements.go",
"+++ b/select-statements.go",
"@@ -1,10 +0,0 @@",
"-select {",
"- case a := <-c:",
"- println(x)",
"- case b <- c:",
"- println(5)",
"- case <-time.After(2):",
"- println(6)",
"- default:",
"- return",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "6c726441703c87ad65a433fd78c98dd03874d274..c169e9683d54586a7fa6eab867dc6eb4eae7e85c"
}]