MCPcopy
hub / github.com/kopia/kopia / indirectionLevel

Function indirectionLevel

repo/object/object_manager_test.go:539–546  ·  view source on GitHub ↗
(oid ID)

Source from the content-addressed store, hash-verified

537}
538
539func indirectionLevel(oid ID) int {
540 indexObjectID, ok := oid.IndexObjectID()
541 if !ok {
542 return 0
543 }
544
545 return 1 + indirectionLevel(indexObjectID)
546}
547
548func TestHMAC(t *testing.T) {
549 ctx := testlogging.Context(t)

Callers 1

TestIndirectionFunction · 0.85

Calls 1

IndexObjectIDMethod · 0.80

Tested by

no test coverage detected