MCPcopy Create free account
hub / github.com/elastic/devfiler / humanize

Function humanize

src/ui/util.rs:195–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193
194 #[test]
195 fn humanize() {
196 assert_eq!(humanize_count(12).to_string(), "12");
197 assert_eq!(humanize_count(1_234).to_string(), "1.23K");
198 assert_eq!(humanize_count(12_344_000).to_string(), "12.34M");
199 }
200}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected