axum-cometd 0.7.1

Framework for CometD server creation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::utils::ChannelNameValidator;
use test_common::TEST_SEND_CHANNEL_NAMES;

#[test]
fn test_send_channel_name_validator() {
    let validator = ChannelNameValidator::default();

    for (channel, result) in TEST_SEND_CHANNEL_NAMES {
        assert_eq!(
            validator.validate_send_channel_name(channel),
            result,
            "{channel}"
        );
    }
}