Skip to content

Commit

Permalink
test(portability): Test u32 for Counters
Browse files Browse the repository at this point in the history
Signed-off-by: Léo Gillot-Lamure <[email protected]>
  • Loading branch information
navaati committed Jul 17, 2024
1 parent 87442a2 commit fc0a6fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/encoding/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,9 @@ mod tests {
let mut registry = Registry::default();
registry.register("my_counter", "My counter", counter);

let counter_u32 = Counter::<u32, AtomicU32>::default();
registry.register("u32_counter", "Counter::<u32, AtomicU32>", counter_u32);

let mut encoded = String::new();

encode(&mut encoded, &registry).unwrap();
Expand Down

0 comments on commit fc0a6fd

Please sign in to comment.