kafka-client-engine 0.0.1

Execution and driver-integration layer for the native Kafka client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Focused evidence for the generated API-key 48 version window.

use super::version::{
    DESCRIBE_CLIENT_QUOTAS_MAX_VERSION, DESCRIBE_CLIENT_QUOTAS_MIN_VERSION,
    supports_describe_client_quotas_version,
};

#[test]
fn version_window_is_exactly_v0_through_v1() {
    assert_eq!(DESCRIBE_CLIENT_QUOTAS_MIN_VERSION, 0);
    assert_eq!(DESCRIBE_CLIENT_QUOTAS_MAX_VERSION, 1);
    assert!(!supports_describe_client_quotas_version(-1));
    assert!(supports_describe_client_quotas_version(0));
    assert!(supports_describe_client_quotas_version(1));
    assert!(!supports_describe_client_quotas_version(2));
}