diff options
author | Rob Pike <r@golang.org> | 2009-07-27 11:02:06 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2009-07-27 11:02:06 -0700 |
commit | c8e43d6ee052cf72b1cd037baceb19f16ed9b038 (patch) | |
tree | 3f6b6494dae9ebde3b936a77f1009c3db0cf9111 /src/pkg/gob/encoder_test.go | |
parent | c0797ee99b7cab39567c55d995d1a43d34032310 (diff) | |
download | golang-c8e43d6ee052cf72b1cd037baceb19f16ed9b038.tar.gz |
clean up for public use: make some stuff private, add doc comments.
R=rsc
DELTA=298 (202 added, 0 deleted, 96 changed)
OCL=32006
CL=32224
Diffstat (limited to 'src/pkg/gob/encoder_test.go')
-rw-r--r-- | src/pkg/gob/encoder_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/gob/encoder_test.go b/src/pkg/gob/encoder_test.go index 4d9258345..a7e66a57e 100644 --- a/src/pkg/gob/encoder_test.go +++ b/src/pkg/gob/encoder_test.go @@ -70,7 +70,7 @@ func TestBasicEncoder(t *testing.T) { t.Fatal("error decoding ET1 type:", err); } info := getTypeInfo(reflect.Typeof(ET1{})); - trueWire1 := &wireType{s: info.typeId.gobType().(*structType)}; + trueWire1 := &wireType{s: info.id.gobType().(*structType)}; if !reflect.DeepEqual(wire1, trueWire1) { t.Fatalf("invalid wireType for ET1: expected %+v; got %+v\n", *trueWire1, *wire1); } @@ -91,7 +91,7 @@ func TestBasicEncoder(t *testing.T) { t.Fatal("error decoding ET2 type:", err); } info = getTypeInfo(reflect.Typeof(ET2{})); - trueWire2 := &wireType{s: info.typeId.gobType().(*structType)}; + trueWire2 := &wireType{s: info.id.gobType().(*structType)}; if !reflect.DeepEqual(wire2, trueWire2) { t.Fatalf("invalid wireType for ET2: expected %+v; got %+v\n", *trueWire2, *wire2); } @@ -107,7 +107,7 @@ func TestBasicEncoder(t *testing.T) { } // 8) The value of et1 newEt1 := new(ET1); - et1Id := getTypeInfo(reflect.Typeof(*newEt1)).typeId; + et1Id := getTypeInfo(reflect.Typeof(*newEt1)).id; err = decode(b, et1Id, newEt1); if err != nil { t.Fatal("error decoding ET1 value:", err); |