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

Function test_agent_identity

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

Source from the content-addressed store, hash-verified

202
203 #[test]
204 fn test_agent_identity() {
205 let agent = Identity::builder("ci-bot")
206 .identity_type(IdentityType::Agent)
207 .usage(IdentityUsage::Bot)
208 .build()
209 .unwrap();
210
211 assert!(agent.identity_type.is_agent());
212 assert!(agent.usage.is_bot());
213 }
214
215 #[test]
216 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