aboutsummaryrefslogtreecommitdiff
path: root/test/method.go
AgeCommit message (Collapse)Author
2013-02-11test: a number of fixes.Alan Donovan
Details: - reorder.go: delete p8. (Once expectation is changed per b/4627 it is identical to p1.) - switch.go: added some more (degenerate) switches. - range.go: improved error messages in a few cases. - method.go: added tests of calls to promoted methods. R=iant CC=golang-dev https://golang.org/cl/7306087
2012-03-07cmd/gc: unnamed struct types can have methodsRuss Cox
Fixes #3143. R=ken2 CC=golang-dev https://golang.org/cl/5752070
2012-02-23test: commentary for [h-m]*.goRob Pike
R=golang-dev, gri CC=golang-dev https://golang.org/cl/5674112
2012-02-16test: use testlib (final 61)Russ Cox
X ,s;^// \$G (\$D/)?\$F\.go *$;// compile;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A *$;// build;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A && \./\$A\.out *$;// run;g X ,s;^// errchk \$G( -e)? (\$D/)?\$F\.go *$;// errorcheck;g R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5671080
2010-09-30gc, spec, tests: no auto-indirect of pointer to interface valueRuss Cox
Implies no embedding of pointer to interface value either. R=gri, iant, ken2, r, r2 CC=golang-dev https://golang.org/cl/2289041
2010-09-28gc: fix reflect table method receiverRuss Cox
Fixes #451. Fixes #770. R=ken2 CC=golang-dev https://golang.org/cl/2207045
2010-03-24delete all uses of panicln by rewriting them using panic or,Rob Pike
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev https://golang.org/cl/741041
2009-12-18gc: method expressions on concrete typesRuss Cox
R=ken2 https://golang.org/cl/180092
2009-09-14fix "declared and not used" in tests;Russ Cox
also template/template.go, missed last time. R=r DELTA=116 (61 added, 10 deleted, 45 changed) OCL=34620 CL=34622
2009-01-20delete exportRuss Cox
TBR=r OCL=23121 CL=23127
2009-01-16convert tests; nothing interesting.Russ Cox
R=r OCL=23012 CL=23014
2008-11-04move invalid method uses to new testRuss Cox
R=iant DELTA=24 (13 added, 10 deleted, 1 changed) OCL=18424 CL=18439
2008-10-07update code to follow new semicolon rules:Russ Cox
* 1. all statements and declarations are terminated by semicolons * 2. semicolons can be omitted at top level. * 3. semicolons can be omitted before and after the closing ) or } * on a list of statements or declarations. /home/rsc/bin/addsemi and then diff+tweak. R=r,gri OCL=16620 CL=16643
2008-10-04add method test & fix method name bugsRuss Cox
R=ken,r DELTA=86 (72 added, 9 deleted, 5 changed) OCL=16488 CL=16488