MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / array

Function array

crates/sats/src/algebraic_value.rs:420–425  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

418
419 #[test]
420 fn array() {
421 let array = AlgebraicType::array(AlgebraicType::U8);
422 let value = AlgebraicValue::Array(ArrayValue::Sum([].into()));
423 let typespace = Typespace::new(vec![]);
424 assert_eq!(in_space(&typespace, &array, &value).to_satn(), "[]");
425 }
426
427 #[test]
428 fn array_of_values() {

Callers 15

bytesMethod · 0.70
array_of_valuesFunction · 0.70
meta_typeMethod · 0.70
meta_typeMethod · 0.70
initial_module_defFunction · 0.50
updated_module_defFunction · 0.50
auto_migration_errorsFunction · 0.50
add_viewFunction · 0.50
remove_viewFunction · 0.50
migrate_view_recomputeFunction · 0.50

Calls 3

SumFunction · 0.85
ArrayFunction · 0.50
newFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…