File: testy.txt

package info (click to toggle)
golang-golang-x-tools 1%3A0.25.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 22,724 kB
  • sloc: javascript: 2,027; asm: 1,645; sh: 166; yacc: 155; makefile: 49; ansic: 8
file content (41 lines) | stat: -rw-r--r-- 960 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

-- flags --
-ignore_extra_diags

-- testy.go --
package testy

type tt int //@rename("tt", "testyType", ttTotestyType)

func a() {
	foo := 42 //@rename("foo", "bar", fooTobar)
}
-- testy_test.go --
package testy

import "testing"

func TestSomething(t *testing.T) {
	var x int //@rename("x", "testyX", xTotestyX)
	a()       //@rename("a", "b", aTob)
}
-- @aTob/testy.go --
@@ -5 +5 @@
-func a() {
+func b() {
-- @aTob/testy_test.go --
@@ -7 +7 @@
-	a()       //@rename("a", "b", aTob)
+	b()       //@rename("a", "b", aTob)
-- @fooTobar/testy.go --
@@ -6 +6 @@
-	foo := 42 //@rename("foo", "bar", fooTobar)
+	bar := 42 //@rename("foo", "bar", fooTobar)
-- @ttTotestyType/testy.go --
@@ -3 +3 @@
-type tt int //@rename("tt", "testyType", ttTotestyType)
+type testyType int //@rename("tt", "testyType", ttTotestyType)
-- @xTotestyX/testy_test.go --
@@ -6 +6 @@
-	var x int //@rename("x", "testyX", xTotestyX)
+	var testyX int //@rename("x", "testyX", xTotestyX)