MCPcopy Create free account
hub / github.com/SoftbearStudios/bitcode / test_empty_array

Function test_empty_array

src/derive/array.rs:105–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103
104 #[test]
105 fn test_empty_array() {
106 type T = [u8; 0];
107 let empty_array = T::default();
108 decode::<T>(&encode(&empty_array)).unwrap();
109 decode::<Vec<T>>(&encode(&vec![empty_array; 100])).unwrap();
110 }
111
112 #[test]
113 fn test_length_overflow() {

Callers

nothing calls this directly

Calls 1

encodeFunction · 0.85

Tested by

no test coverage detected