MCPcopy Create free account
hub / github.com/corrode/refactoring-rust / empty

Function empty

examples/07_optional_values.rs:25–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24 #[test]
25 fn empty() {
26 let values: Vec<Option<i32>> = vec![];
27 assert_eq!(sum_options(values), 0);
28 }
29
30 #[test]
31 fn all_none() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected