• Daniel Martí's avatar
    cmd/compile: add TestIntendedInlining from runtime · 0d8a3b20
    Daniel Martí authored
    Move it from the runtime package, as we will soon add more packages and
    functions for it to check.
    
    The test used the testEnv func, which cleaned certain environment
    variables from a command, so it was moved to internal/testenv under a
    more descriptive (and less ambiguous) name. Add a simple godoc to it
    too.
    
    For #21851.
    
    Change-Id: I6f39c1f23b45377718355fafe66ffd87047d8ab6
    Reviewed-on: https://go-review.googlesource.com/63550
    Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIlya Tocar <ilya.tocar@intel.com>
    0d8a3b20
runtime_test.go 7.85 KB