[router] remove old/oudated/useless comments across code base (#10968)
This commit is contained in:
@@ -598,8 +598,6 @@ mod tests {
|
||||
use super::*;
|
||||
use std::net::TcpListener;
|
||||
|
||||
// ============= PrometheusConfig Tests =============
|
||||
|
||||
#[test]
|
||||
fn test_prometheus_config_default() {
|
||||
let config = PrometheusConfig::default();
|
||||
@@ -628,8 +626,6 @@ mod tests {
|
||||
assert_eq!(cloned.host, config.host);
|
||||
}
|
||||
|
||||
// ============= IP Address Parsing Tests =============
|
||||
|
||||
#[test]
|
||||
fn test_valid_ipv4_parsing() {
|
||||
let test_cases = vec!["127.0.0.1", "192.168.1.1", "0.0.0.0"];
|
||||
@@ -679,8 +675,6 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
// ============= Socket Address Creation Tests =============
|
||||
|
||||
#[test]
|
||||
fn test_socket_addr_creation() {
|
||||
let test_cases = vec![("127.0.0.1", 8080), ("0.0.0.0", 29000), ("::1", 9090)];
|
||||
@@ -716,8 +710,6 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
// ============= Duration Bucket Tests =============
|
||||
|
||||
#[test]
|
||||
fn test_duration_bucket_coverage() {
|
||||
let test_cases: [(f64, &str); 7] = [
|
||||
@@ -743,8 +735,6 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
// ============= Matcher Configuration Tests =============
|
||||
|
||||
#[test]
|
||||
fn test_duration_suffix_matcher() {
|
||||
let matcher = Matcher::Suffix(String::from("duration_seconds"));
|
||||
@@ -763,8 +753,6 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
// ============= Builder Configuration Tests =============
|
||||
|
||||
#[test]
|
||||
fn test_prometheus_builder_configuration() {
|
||||
let _config = PrometheusConfig::default();
|
||||
@@ -783,16 +771,12 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
// ============= Upkeep Timeout Tests =============
|
||||
|
||||
#[test]
|
||||
fn test_upkeep_timeout_duration() {
|
||||
let timeout = Duration::from_secs(5 * 60);
|
||||
assert_eq!(timeout.as_secs(), 300);
|
||||
}
|
||||
|
||||
// ============= Custom Bucket Tests =============
|
||||
|
||||
#[test]
|
||||
fn test_custom_buckets_for_different_metrics() {
|
||||
let request_buckets = [0.001, 0.01, 0.1, 1.0, 10.0];
|
||||
@@ -810,8 +794,6 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
// ============= RouterMetrics Tests =============
|
||||
|
||||
#[test]
|
||||
fn test_metrics_static_methods() {
|
||||
RouterMetrics::record_request("/generate");
|
||||
@@ -876,8 +858,6 @@ mod tests {
|
||||
TokenizerMetrics::set_vocab_size("huggingface", 50000);
|
||||
}
|
||||
|
||||
// ============= Port Availability Tests =============
|
||||
|
||||
#[test]
|
||||
fn test_port_already_in_use() {
|
||||
let port = 29123;
|
||||
@@ -892,8 +872,6 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
// ============= Integration Test Helpers =============
|
||||
|
||||
#[test]
|
||||
fn test_metrics_endpoint_accessibility() {
|
||||
let config = PrometheusConfig {
|
||||
@@ -937,8 +915,6 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
// ============= Edge Cases Tests =============
|
||||
|
||||
#[test]
|
||||
fn test_empty_string_metrics() {
|
||||
RouterMetrics::record_request("");
|
||||
|
||||
Reference in New Issue
Block a user