MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / parses_stack_spec

Function parses_stack_spec

crates/cli/src/engine_flags.rs:130–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128
129 #[test]
130 fn parses_stack_spec() {
131 let spec: StackSpec = "16:64".parse().unwrap();
132 let cfg = spec.into_stack_config();
133 assert_eq!(cfg.initial_size, 16);
134 assert_eq!(cfg.max_size, 64);
135 assert!(cfg.dynamic);
136 }
137
138 #[test]
139 fn builds_dynamic_stack_engine() {

Callers

nothing calls this directly

Calls 1

into_stack_configMethod · 0.80

Tested by

no test coverage detected