Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Dstack-TEE/dstack
/ test_from_str
Function
test_from_str
size-parser/src/lib.rs:493–496 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
491
492
#[test]
493
fn test_from_str() {
494
let size: MemorySize =
"2G"
.parse().unwrap();
495
assert_eq!(size.bytes(), 2 * 1024 * 1024 * 1024);
496
}
497
498
#[test]
499
fn test_display() {
Callers
nothing calls this directly
Calls
1
parse
Method · 0.45
Tested by
no test coverage detected