MCPcopy Create free account
hub / github.com/csskit/csskit / test_lookup

Function test_lookup

crates/css_lexer/src/dyn_atom_registry.rs:307–313  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

305
306 #[test]
307 fn test_lookup() {
308 let combined = DynAtomRegistry::<TestAtomSet>::new();
309
310 let custom_bits = combined.str_to_bits("my-custom-value");
311
312 assert_eq!(combined.lookup(custom_bits), Some("my-custom-value"));
313 }
314
315 #[test]
316 fn test_different_dynamic_atoms_get_different_bits() {

Callers

nothing calls this directly

Calls 1

str_to_bitsMethod · 0.45

Tested by

no test coverage detected