MCPcopy Create free account
hub / github.com/YuminosukeSato/ironkernel / buffer_require_non_empty_err

Function buffer_require_non_empty_err

src/buffer/inner.rs:301–308  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

299
300 #[test]
301 fn buffer_require_non_empty_err() {
302 let buf = Buffer::empty_f64();
303 let err = buf.require_non_empty("sum").unwrap_err();
304 assert_eq!(
305 err,
306 ParsecError::EmptyCollection("cannot sum empty buffer".into())
307 );
308 }
309}

Callers

nothing calls this directly

Calls 1

require_non_emptyMethod · 0.80

Tested by

no test coverage detected