]> Cypherpunks repositories - gostls13.git/commitdiff
src/testing/cover: document the CoverBlock struct fields
authorStephen L <36011612+steuhs@users.noreply.github.com>
Fri, 29 Jun 2018 16:36:04 +0000 (16:36 +0000)
committerAndrew Bonventre <andybons@golang.org>
Fri, 29 Jun 2018 16:53:23 +0000 (16:53 +0000)
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 <andybons@golang.org>
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/testing/cover.go

index a4ce37f7c2dfb8130685ec489ff7608d0fe691f8..be7d9e2cc3d4f6c9110068fb126245eedd57d62f 100644 (file)
@@ -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