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

Function test_agent_identity

atomic-identity/src/lib.rs:214–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212
213 #[test]
214 fn test_agent_identity() {
215 let agent = Identity::builder("ci-bot")
216 .identity_type(IdentityType::Agent)
217 .usage(IdentityUsage::Bot)
218 .build()
219 .unwrap();
220
221 assert!(agent.identity_type.is_agent());
222 assert!(agent.usage.is_bot());
223 }
224
225 #[test]
226 fn test_delegated_identity() {

Callers

nothing calls this directly

Calls 4

unwrapMethod · 0.45
buildMethod · 0.45
usageMethod · 0.45
identity_typeMethod · 0.45

Tested by

no test coverage detected