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

Function empty

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected