From: Stephen L <36011612+steuhs@users.noreply.github.com> Date: Fri, 29 Jun 2018 16:36:04 +0000 (+0000) Subject: src/testing/cover: document the CoverBlock struct fields X-Git-Tag: go1.11beta2~253 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=57da8dd459e705888c4c49a487df5f6d58eb6877;p=gostls13.git src/testing/cover: document the CoverBlock struct fields Fill in the missing descriptions for the CoverBlock struct fields Change-Id: I9257881a19b01e5cfe61cf19a91375b6d7cc68ef GitHub-Last-Rev: f5b9e1d49d1c00f59ce4d3684915e5e93ec0297a GitHub-Pull-Request: golang/go#24079 Reviewed-on: https://go-review.googlesource.com/96756 Reviewed-by: Andrew Bonventre Run-TryBot: Andrew Bonventre TryBot-Result: Gobot Gobot --- diff --git a/src/testing/cover.go b/src/testing/cover.go index a4ce37f7c2..be7d9e2cc3 100644 --- a/src/testing/cover.go +++ b/src/testing/cover.go @@ -16,11 +16,11 @@ import ( // NOTE: This struct is internal to the testing infrastructure and may change. // It is not covered (yet) by the Go 1 compatibility guidelines. type CoverBlock struct { - Line0 uint32 - Col0 uint16 - Line1 uint32 - Col1 uint16 - Stmts uint16 + Line0 uint32 // line number for block start + Col0 uint16 // column number for block start + Line1 uint32 // line number for block end + Col1 uint16 // column number for block end + Stmts uint16 // number of statements included in this block } var cover Cover