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

Function test_intent_entry_unicode

atomic-core/src/change/session.rs:488–504  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

486
487 #[test]
488 fn test_intent_entry_unicode() {
489 let entry = IntentEntry {
490 title: "修复认证错误".into(),
491 description: "ログインフローの修正".into(),
492 turn_id: 1,
493 model: "模型-v1".into(),
494 session_id: "세션-αβγ".into(),
495 outcome: "réussite".into(),
496 total_tokens: 999,
497 total_cost_usd: 1.23,
498 };
499
500 let bytes = entry.to_bytes();
501 let recovered = IntentEntry::from_bytes(&bytes).unwrap();
502
503 assert_eq!(entry, recovered);
504 }
505
506 #[test]
507 fn test_invalid_bytes_returns_error() {

Callers

nothing calls this directly

Calls 2

to_bytesMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected