What steps will reproduce the problem?
1. cd %GOPATH%\src\code.google.com\p\rog-go\exp\filemarshal
2. go test
What is the expected output? What do you see instead?
tests passes
Sometimes the test passes and sometimes it fails with a few different errors.
d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
PASS
ok code.google.com/p/rog-go/exp/filemarshal 0.125s
d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
--- FAIL: TestEncodeDecode (0.01 seconds)
filemarshal_test.go:177: json: mismatchedReceiver: decode failed:json: cannot unmarshal number into Go value of type filemarshal.X2
FAIL
exit status 1
FAIL code.google.com/p/rog-go/exp/filemarshal 0.125s
d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
PASS
ok code.google.com/p/rog-go/exp/filemarshal 0.146s
d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
--- FAIL: TestEncodeDecode (0.01 seconds)
filemarshal_test.go:177: json: noFiles: decode failed:json: cannot unmarshal object into Go value of type int
FAIL
exit status 1
FAIL code.google.com/p/rog-go/exp/filemarshal 0.209s
d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
PASS
ok code.google.com/p/rog-go/exp/filemarshal 0.126s
d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
--- FAIL: TestEncodeDecode (0.01 seconds)
filemarshal_test.go:177: gob: noFiles: decode failed:gob: decoding into local type *int, received remote type One = struct { S string; F File = struct {
Name string; }; }
FAIL
exit status 1
FAIL code.google.com/p/rog-go/exp/filemarshal 0.192s
d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
PASS
ok code.google.com/p/rog-go/exp/filemarshal 0.169s
d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
PASS
ok code.google.com/p/rog-go/exp/filemarshal 0.126s
d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
--- FAIL: TestEncodeDecode (0.00 seconds)
filemarshal_test.go:177: gob: oneFile: decode failed:gob: type mismatch: no fields matched compiling decoder for One
FAIL
exit status 1
FAIL code.google.com/p/rog-go/exp/filemarshal 0.124s
d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
--- FAIL: TestEncodeDecode (0.01 seconds)
filemarshal_test.go:177: gob: noFiles: decode failed:gob: decoding into local type *int, received remote type One = struct { S string; F File = struct {
Name string; }; }
FAIL
exit status 1
FAIL code.google.com/p/rog-go/exp/filemarshal 0.112s
d:\Dev\go\gopath\src\code.google.com\p\rog-go\exp\filemarshal>go test
--- FAIL: TestEncodeDecode (0.00 seconds)
filemarshal_test.go:177: gob: largeFile: decode failed:gob: type mismatch in decoder: want struct type filemarshal.File; got non-struct
FAIL
exit status 1
FAIL code.google.com/p/rog-go/exp/filemarshal 0.118s
What version of the product are you using? On what operating system?
changeset: 154:b2e2eb7b9a8f
go version go1.3.1 windows/amd64
Windows 7 64-bit
Please provide any additional information below.
Original issue reported on code.google.com by bigras.b...@gmail.com on 5 Sep 2014 at 2:43
Original issue reported on code.google.com by
bigras.b...@gmail.com
on 5 Sep 2014 at 2:43