Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201028153306-37f0764111ff / internal / lsp / testdata / folding / bad.go.golden
1 -- foldingRange-0 --
2 package folding //@fold("package")
3
4 import (<>)
5
6 import (<>)
7         
8 // badBar is a function.
9 func badBar(<>) string {<>}
10
11 -- foldingRange-1 --
12 package folding //@fold("package")
13
14 import ( "fmt"
15         _ "log"
16 )
17
18 import ( 
19         _ "os" )
20         
21 // badBar is a function.
22 func badBar() string { x := true
23         if x {<>} else {<>}
24         return
25 }
26
27 -- foldingRange-2 --
28 package folding //@fold("package")
29
30 import ( "fmt"
31         _ "log"
32 )
33
34 import ( 
35         _ "os" )
36         
37 // badBar is a function.
38 func badBar() string { x := true
39         if x { 
40                 // This is the only foldable thing in this file when lineFoldingOnly
41                 fmt.Println(<>)
42         } else {
43                 fmt.Println(<>) }
44         return
45 }
46
47 -- foldingRange-cmd --
48 3:9-5:0
49 7:9-8:8
50 11:13-11:12
51 11:23-18:0
52 12:8-15:1
53 14:15-14:20
54 15:10-16:23
55 16:15-16:21
56
57 -- foldingRange-imports-0 --
58 package folding //@fold("package")
59
60 import (<>)
61
62 import (<>)
63         
64 // badBar is a function.
65 func badBar() string { x := true
66         if x { 
67                 // This is the only foldable thing in this file when lineFoldingOnly
68                 fmt.Println("true")
69         } else {
70                 fmt.Println("false") }
71         return
72 }
73
74 -- foldingRange-lineFolding-0 --
75 package folding //@fold("package")
76
77 import ( "fmt"
78         _ "log"
79 )
80
81 import ( 
82         _ "os" )
83         
84 // badBar is a function.
85 func badBar() string { x := true
86         if x {<>
87         } else {
88                 fmt.Println("false") }
89         return
90 }
91