MCPcopy
hub / github.com/kopia/kopia / verifyManifestAccessLevel

Function verifyManifestAccessLevel

internal/auth/authz_test.go:191–197  ·  view source on GitHub ↗
(t *testing.T, a auth.AuthorizationInfo, labels map[string]string, wantLevel auth.AccessLevel)

Source from the content-addressed store, hash-verified

189}
190
191func verifyManifestAccessLevel(t *testing.T, a auth.AuthorizationInfo, labels map[string]string, wantLevel auth.AccessLevel) {
192 t.Helper()
193
194 if got, want := a.ManifestAccessLevel(labels), wantLevel; got != want {
195 t.Errorf("invalid access level to %v: %v, want %v", labels, got, want)
196 }
197}

Callers 2

TestNoAccessFunction · 0.85
verifyLegacyAuthorizerFunction · 0.85

Calls 3

HelperMethod · 0.80
ErrorfMethod · 0.80
ManifestAccessLevelMethod · 0.65

Tested by

no test coverage detected