• Austin Clements's avatar
    runtime: improve TestMemStats checks · ef1829d1
    Austin Clements authored
    Now that we have a nice predicate system, improve the tests performed
    by TestMemStats. We add some more non-zero checks (now that we force a
    GC, things like NumGC must be non-zero), checks for trivial boolean
    fields, and a few more range checks.
    
    Change-Id: I6da46d33fa0ce5738407ee57d587825479413171
    Reviewed-on: https://go-review.googlesource.com/37513
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    ef1829d1
malloc_test.go 6.61 KB