MCPcopy Create free account
hub / github.com/ZettaScaleLabs/hiroz / test_parse_default_value_int

Function test_parse_default_value_int

crates/hiroz-codegen/src/parser/mod.rs:324–333  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

322
323 #[test]
324 fn test_parse_default_value_int() {
325 match parse_default_value("42").unwrap() {
326 DefaultValue::Int(i) => assert_eq!(i, 42),
327 _ => panic!("Expected Int"),
328 }
329 match parse_default_value("-100").unwrap() {
330 DefaultValue::Int(i) => assert_eq!(i, -100),
331 _ => panic!("Expected Int"),
332 }
333 }
334
335 #[test]
336 fn test_parse_default_value_float() {

Callers

nothing calls this directly

Calls 1

parse_default_valueFunction · 0.85

Tested by

no test coverage detected