diff --git a/src/encoding/text.rs b/src/encoding/text.rs index 0186bc4..3c14492 100644 --- a/src/encoding/text.rs +++ b/src/encoding/text.rs @@ -709,7 +709,7 @@ mod tests { use crate::metrics::{counter::Counter, exemplar::CounterWithExemplar}; use pyo3::{prelude::*, types::PyModule}; use std::borrow::Cow; - use std::sync::atomic::AtomicU32; + use std::sync::atomic::{AtomicI32, AtomicU32}; #[test] fn encode_counter() { @@ -719,7 +719,10 @@ mod tests { let counter_f32 = Counter::::default(); registry.register("f32_counter", "Counter::", counter_f32); - + + let counter_u32 = Counter::::default(); + registry.register("u32_counter", "Counter::", counter_u32); + let mut encoded = String::new(); encode(&mut encoded, ®istry).unwrap(); @@ -786,6 +789,9 @@ mod tests { let gauge_f32 = Gauge::::default(); registry.register("f32_gauge", "Gauge::", gauge_f32); + let gauge_i32 = Gauge::::default(); + registry.register("i32_gauge", "Gauge::", gauge_i32); + let mut encoded = String::new(); encode(&mut encoded, ®istry).unwrap();