Skip to content

Commit 2310848

Browse files
committed
go/ssa: reindent test cases in TestGenericBodies
Change-Id: Icbd0cd9ea7b1b42fa8ed7fe222e83748a1cb8e21 Reviewed-on: https://go-review.googlesource.com/c/tools/+/493097 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Alan Donovan <adonovan@google.com> Run-TryBot: Tim King <taking@google.com> gopls-CI: kokoro <noreply+kokoro@google.com>
1 parent 90e9c65 commit 2310848

File tree

1 file changed

+59
-59
lines changed

1 file changed

+59
-59
lines changed

go/ssa/builder_generic_test.go

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -36,84 +36,84 @@ func TestGenericBodies(t *testing.T) {
3636
}
3737
for _, contents := range []string{
3838
`
39-
package p
39+
package p
4040
41-
func f(x int) {
42-
var i interface{}
43-
print(i, 0) //@ types("interface{}", int)
44-
print() //@ types()
45-
print(x) //@ types(int)
46-
}
47-
`,
41+
func f(x int) {
42+
var i interface{}
43+
print(i, 0) //@ types("interface{}", int)
44+
print() //@ types()
45+
print(x) //@ types(int)
46+
}
47+
`,
4848
`
49-
package q
49+
package q
5050
51-
func f[T any](x T) {
52-
print(x) //@ types(T)
53-
}
54-
`,
51+
func f[T any](x T) {
52+
print(x) //@ types(T)
53+
}
54+
`,
5555
`
56-
package r
56+
package r
5757
58-
func f[T ~int]() {
59-
var x T
60-
print(x) //@ types(T)
61-
}
62-
`,
58+
func f[T ~int]() {
59+
var x T
60+
print(x) //@ types(T)
61+
}
62+
`,
6363
`
64-
package s
64+
package s
6565
66-
func a[T ~[4]byte](x T) {
67-
for k, v := range x {
68-
print(x, k, v) //@ types(T, int, byte)
69-
}
66+
func a[T ~[4]byte](x T) {
67+
for k, v := range x {
68+
print(x, k, v) //@ types(T, int, byte)
7069
}
71-
func b[T ~*[4]byte](x T) {
72-
for k, v := range x {
73-
print(x, k, v) //@ types(T, int, byte)
74-
}
70+
}
71+
func b[T ~*[4]byte](x T) {
72+
for k, v := range x {
73+
print(x, k, v) //@ types(T, int, byte)
7574
}
76-
func c[T ~[]byte](x T) {
77-
for k, v := range x {
78-
print(x, k, v) //@ types(T, int, byte)
79-
}
75+
}
76+
func c[T ~[]byte](x T) {
77+
for k, v := range x {
78+
print(x, k, v) //@ types(T, int, byte)
8079
}
81-
func d[T ~string](x T) {
82-
for k, v := range x {
83-
print(x, k, v) //@ types(T, int, rune)
84-
}
80+
}
81+
func d[T ~string](x T) {
82+
for k, v := range x {
83+
print(x, k, v) //@ types(T, int, rune)
8584
}
86-
func e[T ~map[int]string](x T) {
87-
for k, v := range x {
88-
print(x, k, v) //@ types(T, int, string)
89-
}
85+
}
86+
func e[T ~map[int]string](x T) {
87+
for k, v := range x {
88+
print(x, k, v) //@ types(T, int, string)
9089
}
91-
func f[T ~chan string](x T) {
92-
for v := range x {
93-
print(x, v) //@ types(T, string)
94-
}
90+
}
91+
func f[T ~chan string](x T) {
92+
for v := range x {
93+
print(x, v) //@ types(T, string)
9594
}
95+
}
9696
97-
func From() {
98-
type A [4]byte
99-
print(a[A]) //@ types("func(x s.A)")
97+
func From() {
98+
type A [4]byte
99+
print(a[A]) //@ types("func(x s.A)")
100100
101-
type B *[4]byte
102-
print(b[B]) //@ types("func(x s.B)")
101+
type B *[4]byte
102+
print(b[B]) //@ types("func(x s.B)")
103103
104-
type C []byte
105-
print(c[C]) //@ types("func(x s.C)")
104+
type C []byte
105+
print(c[C]) //@ types("func(x s.C)")
106106
107-
type D string
108-
print(d[D]) //@ types("func(x s.D)")
107+
type D string
108+
print(d[D]) //@ types("func(x s.D)")
109109
110-
type E map[int]string
111-
print(e[E]) //@ types("func(x s.E)")
110+
type E map[int]string
111+
print(e[E]) //@ types("func(x s.E)")
112112
113-
type F chan string
114-
print(f[F]) //@ types("func(x s.F)")
115-
}
116-
`,
113+
type F chan string
114+
print(f[F]) //@ types("func(x s.F)")
115+
}
116+
`,
117117
`
118118
package t
119119

0 commit comments

Comments
 (0)