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

Function binding_ref_names

atomic-cli/tests/it/git_binding_cb6a_test.rs:97–111  ·  view source on GitHub ↗
(git_dir: &Path)

Source from the content-addressed store, hash-verified

95}
96
97fn 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]
114fn publish_is_create_only_idempotent_and_verifies_under_trust_policy() {

Calls 4

openFunction · 0.85
sortMethod · 0.80
nameMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected