Open rsc opened 11 years ago
Updated by https://golang.org/cl/47870043
CL https://golang.org/cl/92230043 mentions this issue.
I think this issue can now be closed, we are at 86.2% coverage at commit 0ed70efc6b7ec096603c58f27c2668af3862bb3c
$ pwd
/Users/emmanuelodeke/go/src/go.googlesource.com/go/src/encoding/xml
$ go version
go version devel +0ed70ef Wed Feb 3 04:33:08 2016 +0000 darwin/amd64
$ go test -cover
PASS
coverage: 86.2% of statements
ok encoding/xml 0.012s
Shouldn't it be closed at 100%?
Coverage is not a good metric. Even 100% line coverage is not a guarantee of actual coverage. The initial report mentioned trying to test interactions between the different features. Line coverage only guarantees they are tested in isolation.
I agree that 100% coverage isn't a guarantee for much, but I would see it as a minimum.
Gotcha, sounds like a plan. I'll try taking a stab at this for Go1.7.
Change https://golang.org/cl/263317 mentions this issue: encoding/xml: increase test coverage
Change https://go.dev/cl/606495 mentions this issue: encoding: add full support for marshalers with pointer receivers