agent-hub-runtime 0.6.0

AgentHub desktop and companion CLI runtime for Tauri applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::*;
#[test]
fn produces_a_small_inline_icon_without_changing_the_source() {
    let temporary = tempfile::tempdir().unwrap();
    let icon = temporary.path().join("icon.png");
    image::RgbaImage::new(64, 64).save(&icon).unwrap();
    let before = std::fs::read(&icon).unwrap();
    assert!(data_url(&icon)
        .unwrap()
        .starts_with("data:image/png;base64,"));
    assert_eq!(std::fs::read(icon).unwrap(), before);
}