MCPcopy Index your code
hub / github.com/docker/cli / TestCalculateMemUsageUnixNoCache

Function TestCalculateMemUsageUnixNoCache

cli/command/container/stats_helpers_test.go:11–14  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestCalculateMemUsageUnixNoCache(t *testing.T) {
12 result := calculateMemUsageUnixNoCache(container.MemoryStats{Usage: 500, Stats: map[string]uint64{"total_inactive_file": 400}})
13 assert.Assert(t, inDelta(100.0, result, 1e-6))
14}
15
16func TestCalculateMemPercentUnixNoCache(t *testing.T) {
17 // Given

Callers

nothing calls this directly

Calls 2

inDeltaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…