summaryrefslogtreecommitdiff
path: root/src/pkg/reflect/all_test.go
AgeCommit message (Collapse)AuthorFilesLines
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+1564
2011-09-13Imported Upstream version 60Ondřej Surý1-1566/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-10/+66
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-10/+2
2011-06-16Imported Upstream version 57.2upstream/57.2Ondřej Surý1-1/+3
2011-05-04Imported Upstream version 57upstream/57Ondřej Surý1-1/+21
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-196/+275
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-231/+181
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-0/+75
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-20/+11
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-129/+246
2010-06-20reflect: add Kind, remove Int8Type, Int8Value, etc.Russ Cox1-60/+97
update other code to match. R=r CC=golang-dev http://codereview.appspot.com/1680044
2010-06-14remove uses of ... from tree, add one testRuss Cox1-2/+26
R=r CC=golang-dev http://codereview.appspot.com/1662041
2010-04-20reflect: implement Set(nil), SetValue(nil) for PtrValue and MapValueRuss Cox1-0/+26
R=r CC=golang-dev http://codereview.appspot.com/823048
2010-02-24gofmt: don't print ()'s around function-typed results (not needed anymore)Robert Griesemer1-1/+1
- add extra test cases to go/printer tests - apply gofmt to src and misc R=rsc CC=golang-dev http://codereview.appspot.com/223041
2010-01-26gc: fix chan <- chan precedence.Russ Cox1-1/+1
also allow func() func(). R=ken2 CC=golang-dev http://codereview.appspot.com/194078
2010-01-24gc: record full package paths in runtime type dataRuss Cox1-0/+7
detect compilation of special package runtime with compiler flag instead of package name. R=ken2 CC=golang-dev http://codereview.appspot.com/193080
2009-12-151) Change default gofmt default settings forRobert Griesemer1-317/+317
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 4th set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180049
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-1/+1
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-114/+114
R=rsc, r http://go/go-review/1025029
2009-11-08delete a pointless todo in all_test.go.Rob Pike1-1/+1
address one in rpc/client.go R=rsc CC=go-dev http://go/go-review/1026030
2009-11-06- application of gofmt with one-line composite literal structs enabledRobert Griesemer1-129/+29
- this CL is dependent on CL 1025008 R=r, rsc http://go/go-review/1025009
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer1-9/+3
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-05missing piece gofmt'ed in reflectRobert Griesemer1-36/+108
R=r, rsc http://go/go-review/1025001
2009-11-05gofmt-ify reflectRobert Griesemer1-198/+367
- the single line structs can be fixed in another round R=rsc http://go/go-review/1016052
2009-10-21Add SetValue(Value) to the Value interface.Adam Langley1-1/+43
R=rsc APPROVED=rsc DELTA=172 (170 added, 0 deleted, 2 changed) OCL=35969 CL=35980
2009-09-29undo 35108 (disallow parens around type in struct literal).Russ Cox1-5/+5
allow parens around [...]int in struct literal. R=ken OCL=35112 CL=35130
2009-09-29disallow parens around type in struct literal syntax,Russ Cox1-5/+5
per discussion with gri. R=ken OCL=35108 CL=35108
2009-09-15more "declared and not used".Russ Cox1-7/+7
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
2009-09-03nil in DeepEqualRuss Cox1-0/+2
R=r DELTA=13 (5 added, 6 deleted, 2 changed) OCL=34337 CL=34343
2009-08-26finish ChanValue: Len and Cap.Russ Cox1-0/+11
R=r DELTA=45 (45 added, 0 deleted, 0 changed) OCL=33873 CL=33881
2009-08-26add Close() and Closed() to ChanValueRuss Cox1-0/+19
R=r DELTA=60 (56 added, 3 deleted, 1 changed) OCL=33868 CL=33872
2009-08-24change reflect test to avoid bug132Russ Cox1-3/+20
R=gri DELTA=20 (17 added, 0 deleted, 3 changed) OCL=33793 CL=33802
2009-08-12convert low-level (used by testing) packages toRuss Cox1-28/+28
whole-package compilation. new Makefiles, tests now in separate package bytes flag fmt io math once os reflect strconv sync time utf8 delete import "xxx" in package xxx. inside package xxx, xxx is not declared anymore so s/xxx.//g delete file and package level forward declarations. note the new internal_test.go and sync and strconv to provide public access to internals during testing. the installed version of the package omits that file and thus does not open the internals to all clients. R=r OCL=33065 CL=33097
2009-08-05- FieldByName lookup through anonymous fieldsRobert Griesemer1-0/+144
- FieldByIndex - changed StructField.Index type from int -> []int - adjustments to reflect clients R=rsc,r DELTA=336 (263 added, 47 deleted, 26 changed) OCL=32731 CL=32802
2009-07-21Don't cast nil to a fixed array type.Ian Lance Taylor1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=31916 CL=31937
2009-07-20Make struct field names unique.Ian Lance Taylor1-5/+5
R=rsc DELTA=5 (0 added, 0 deleted, 5 changed) OCL=31900 CL=31900
2009-07-16add FieldByName to the interface of reflect.StructTypeRob Pike1-1/+10
R=rsc DELTA=34 (33 added, 0 deleted, 1 changed) OCL=31752 CL=31754
2009-07-16fix some bad testing printsRob Pike1-1/+1
R=rsc DELTA=5 (0 added, 0 deleted, 5 changed) OCL=31740 CL=31742
2009-07-10reflection for interface setRuss Cox1-4/+29
rename map access methods to Elem, SetElem. R=r DELTA=95 (66 added, 7 deleted, 22 changed) OCL=31456 CL=31469
2009-07-10DeepEqual for mapsRob Pike1-12/+18
R=rsc DELTA=47 (30 added, 16 deleted, 1 changed) OCL=31455 CL=31455
2009-07-09reflection for methodsRuss Cox1-0/+34
R=r DELTA=156 (135 added, 8 deleted, 13 changed) OCL=31407 CL=31428
2009-07-08reflection for functionsRuss Cox1-0/+19
add channel send type check (thanks austin). fix type mismatch message. R=r DELTA=241 (225 added, 5 deleted, 11 changed) OCL=31370 CL=31375
2009-07-08reflection for channelsRuss Cox1-2/+76
R=r DELTA=188 (171 added, 6 deleted, 11 changed) OCL=31352 CL=31361
2009-07-08reflection for mapsRuss Cox1-0/+54
R=r DELTA=304 (248 added, 34 deleted, 22 changed) OCL=31345 CL=31347
2009-07-07update reflect supporting functions,Russ Cox1-310/+275
tests to use new reflect interface. also make tests a real gotest. depends on CL 31107 R=r DELTA=582 (56 added, 194 deleted, 332 changed) OCL=31108 CL=31279
2009-07-01add test, fix bug: structs that differ in theirRuss Cox1-0/+3
first field were not being handled correctly because the visited map did not include the type. R=r OCL=31006 CL=31006
2009-06-25fix buildRuss Cox1-2/+2
TBR=r OCL=30757 CL=30757
2009-06-25add reflect.Typeof; test for and fix nil interface bug in DeepEqualRuss Cox1-0/+11
R=r DELTA=40 (30 added, 2 deleted, 8 changed) OCL=30742 CL=30753
2009-06-15Fix a proto encoding crasher whereby a nil in a repeated group field would ↵David Symonds1-0/+7
crash the server. Also fix the reflect bug that was exposed by this bug. R=r APPROVED=rsc DELTA=162 (103 added, 32 deleted, 27 changed) OCL=30125 CL=30319