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

Function malformed_values_are_rejected

atomic-core/src/change/attribute.rs:167–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165
166 #[test]
167 fn malformed_values_are_rejected() {
168 assert!(InodeAttr::Mode(0o1000).validate().is_err());
169 assert!(InodeAttr::from_canonical(InodeAttrName::Kind, &[3]).is_err());
170 assert!(InodeAttr::from_canonical(InodeAttrName::Mode, &[0o7]).is_err());
171 }
172}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected