(git_dir: &Path)
| 95 | } |
| 96 | |
| 97 | fn binding_ref_names(git_dir: &Path) -> Vec<String> { |
| 98 | let git = git2::Repository::open(git_dir).expect("open git"); |
| 99 | let mut refs = Vec::new(); |
| 100 | for reference in git.references().expect("list refs") { |
| 101 | let reference = reference.expect("reference"); |
| 102 | let Ok(name) = reference.name() else { |
| 103 | continue; |
| 104 | }; |
| 105 | if name.starts_with("refs/atomic/bindings/") { |
| 106 | refs.push(name.to_string()); |
| 107 | } |
| 108 | } |
| 109 | refs.sort(); |
| 110 | refs |
| 111 | } |
| 112 | |
| 113 | #[test] |
| 114 | fn publish_is_create_only_idempotent_and_verifies_under_trust_policy() { |
no test coverage detected