MCPcopy Create free account
hub / github.com/golang/groupcache / TestGroupStatsAlignment

Function TestGroupStatsAlignment

groupcache_test.go:448–454  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

446}
447
448func TestGroupStatsAlignment(t *testing.T) {
449 var g Group
450 off := unsafe.Offsetof(g.Stats)
451 if off%8 != 0 {
452 t.Fatal("Stats structure is not 8-byte aligned.")
453 }
454}
455
456// TODO(bradfitz): port the Google-internal full integration test into here,
457// using HTTP requests instead of our RPC system.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…