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

Function validate_identifier

atomic-repository/src/wip.rs:307–312  ·  view source on GitHub ↗
(field: &'static str, value: &str)

Source from the content-addressed store, hash-verified

305}
306
307fn validate_identifier(field: &'static str, value: &str) -> Result<(), WipCaptureError> {
308 if value.trim().is_empty() {
309 return Err(WipCaptureError::EmptyIdentifier { field });
310 }
311 Ok(())
312}
313
314fn recovery_ref_name(workspace: &str, operation: &str) -> String {
315 format!(

Callers 2

capture_tracked_wipFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected