http2: reduce alloc-heavy init
Moves test cases into the test where they're used, to remove distractions when profiling unrelated tests. Also this is my style preference, to remove globals and reduce the scope of variables. Change-Id: Ie9cd41b16aad9acf5e210f1fb6f19a7fce52180d Reviewed-on: https://go-review.googlesource.com/20996Reviewed-by: Andrew Gerrand <adg@golang.org>
Showing
Please
register
or
sign in
to comment