summaryrefslogtreecommitdiff
path: root/test/method.go
Commit message (Collapse)AuthorAgeFilesLines
* test: a number of fixes.Alan Donovan2013-02-111-7/+64
| | | | | | | | | | | | | 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://codereview.appspot.com/7306087
* cmd/gc: unnamed struct types can have methodsRuss Cox2012-03-071-6/+126
| | | | | | | | Fixes issue 3143. R=ken2 CC=golang-dev http://codereview.appspot.com/5752070
* test: commentary for [h-m]*.goRob Pike2012-02-231-0/+3
| | | | | | R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/5674112
* test: use testlib (final 61)Russ Cox2012-02-161-1/+1
| | | | | | | | | | | 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 http://codereview.appspot.com/5671080
* gc, spec, tests: no auto-indirect of pointer to interface valueRuss Cox2010-09-301-5/+0
| | | | | | | | Implies no embedding of pointer to interface value either. R=gri, iant, ken2, r, r2 CC=golang-dev http://codereview.appspot.com/2289041
* gc: fix reflect table method receiverRuss Cox2010-09-281-4/+25
| | | | | | | | | Fixes issue 451. Fixes issue 770. R=ken2 CC=golang-dev http://codereview.appspot.com/2207045
* delete all uses of panicln by rewriting them using panic or,Rob Pike2010-03-241-34/+85
| | | | | | | | | in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
* gc: method expressions on concrete typesRuss Cox2009-12-181-1/+9
| | | | | R=ken2 http://codereview.appspot.com/180092
* fix "declared and not used" in tests;Russ Cox2009-09-141-1/+0
| | | | | | | | | also template/template.go, missed last time. R=r DELTA=116 (61 added, 10 deleted, 45 changed) OCL=34620 CL=34622
* delete exportRuss Cox2009-01-201-7/+7
| | | | | | TBR=r OCL=23121 CL=23127
* convert tests; nothing interesting.Russ Cox2009-01-161-7/+7
| | | | | | R=r OCL=23012 CL=23014
* move invalid method uses to new testRuss Cox2008-11-041-10/+0
| | | | | | | R=iant DELTA=24 (13 added, 10 deleted, 1 changed) OCL=18424 CL=18439
* update code to follow new semicolon rules:Russ Cox2008-10-071-1/+1
| | | | | | | | | | | | | * 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
* add method test & fix method name bugsRuss Cox2008-10-041-0/+63
R=ken,r DELTA=86 (72 added, 9 deleted, 5 changed) OCL=16488 CL=16488