• Jay Conrod's avatar
    cmd/cover: preserve compiler directives in floating comments · 38a3c2cf
    Jay Conrod authored
    Previously, cover printed directives (//go: comments) near the top of
    the file unless they were in doc comments. However, directives
    frequently apply to specific definitions, and they are not written in
    doc comments to prevent godoc from printing them. Moving all
    directives to the top of the file affected semantics of tests.
    
    With this change, directives are kept together with the following
    top-level declarations. Only directives that occur after all top-level
    declarations are moved.
    
    Fixes #22022
    
    Change-Id: Ic5c61c4d3969996e4ed5abccba0989163789254c
    Reviewed-on: https://go-review.googlesource.com/69630
    Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRobert Griesemer <gri@golang.org>
    Reviewed-by: 's avatarAlan Donovan <adonovan@google.com>
    38a3c2cf
Name
Last commit
Last update
..
android Loading commit data...
arm Loading commit data...
cgo Loading commit data...
chrome/gophertool Loading commit data...
git Loading commit data...
ios Loading commit data...
linkcheck Loading commit data...
nacl Loading commit data...
sortac Loading commit data...
swig Loading commit data...
trace Loading commit data...
benchcmp Loading commit data...
editors Loading commit data...