MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_format_tokens_thousands

Function test_format_tokens_thousands

atomic-cli/src/commands/agent/attest.rs:886–890  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

884
885 #[test]
886 fn test_format_tokens_thousands() {
887 assert_eq!(format_tokens(1_000), "1.0k");
888 assert_eq!(format_tokens(8_400), "8.4k");
889 assert_eq!(format_tokens(526_900), "526.9k");
890 }
891
892 #[test]
893 fn test_format_tokens_millions() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected