MCPcopy Create free account
hub / github.com/hashintel/hash / stable_empty_slice

Function stable_empty_slice

libs/@local/hashql/core/src/intern/mod.rs:210–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208
209 #[test]
210 fn stable_empty_slice() {
211 let a: Interned<'_, [u16]> = Interned::empty();
212 let b: Interned<'_, [u32]> = Interned::empty();
213 let c: Interned<'_, [u128]> = Interned::empty();
214
215 assert!(ptr::addr_eq(a.0, b.0));
216 assert!(ptr::addr_eq(b.0, c.0));
217
218 assert!(a.is_empty());
219 assert!(b.is_empty());
220 assert!(c.is_empty());
221 }
222}

Callers

nothing calls this directly

Calls 1

emptyFunction · 0.50

Tested by

no test coverage detected