()
| 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 |
nothing calls this directly
no test coverage detected