MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_scope_project_globs

Function test_scope_project_globs

atomic-identity/src/delegation.rs:822–829  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

820
821 #[test]
822 fn test_scope_project_globs() {
823 let scope = DelegationScope::builder()
824 .permission(DelegationPermission::Push)
825 .project("acme/*")
826 .build();
827 assert!(scope.allows_project("acme/api"));
828 assert!(!scope.allows_project("other/api"));
829 }
830
831 /// An unbound scope is valid against every deployment. That is correct
832 /// behaviour for the type — but it is why the CLI binds to the active

Callers

nothing calls this directly

Calls 3

projectMethod · 0.80
permissionMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected