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

Function test_intent_entry_unicode

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

Source from the content-addressed store, hash-verified

1230
1231 #[test]
1232 fn test_intent_entry_unicode() {
1233 let entry = IntentEntry {
1234 title: "修复认证错误".into(),
1235 description: "ログインフローの修正".into(),
1236 turn_id: 1,
1237 model: "模型-v1".into(),
1238 session_id: "세션-αβγ".into(),
1239 outcome: "réussite".into(),
1240 total_tokens: 999,
1241 total_cost_usd: 1.23,
1242 };
1243
1244 let bytes = entry.to_bytes();
1245 let recovered = IntentEntry::from_bytes(&bytes).unwrap();
1246
1247 assert_eq!(entry, recovered);
1248 }
1249
1250 #[test]
1251 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