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

Method validated

atomic-repository/src/repository/synthesis.rs:104–110  ·  view source on GitHub ↗

Validate the origin against the hashed classification contract.

(&self)

Source from the content-addressed store, hash-verified

102
103 /// Validate the origin against the hashed classification contract.
104 pub fn validated(&self) -> Result<ChangeOrigin, RepositoryError> {
105 ChangeOrigin::git_resolution(self.merge_commit.clone(), self.parents.clone()).map_err(
106 |error| RepositoryError::InvalidOperation {
107 message: format!("invalid Git resolution origin: {error}"),
108 },
109 )
110 }
111}
112
113/// The hashed classification applied to one synthesized change.

Callers 3

newMethod · 0.80
validated_originMethod · 0.80
buildMethod · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected