photon-backend 0.1.0

Photon publish/subscribe backend implementations and storage adapters
Documentation
1
2
3
4
5
6
7
8
9
10
//! Integration test: topic registry returns `TopicNotFound` for unknown topics.

use photon_backend::{PhotonError, TopicRegistry};

#[test]
fn unknown_topic_returns_topic_not_found() {
    let registry = TopicRegistry::new();
    let err = registry.get_or_err("nonexistent.topic").unwrap_err();
    assert!(matches!(err, PhotonError::TopicNotFound(name) if name == "nonexistent.topic"));
}