MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / default_fractions_valid

Function default_fractions_valid

nodedb/src/config/engine.rs:193–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191
192 #[test]
193 fn default_fractions_valid() {
194 let cfg = EngineConfig::default();
195 cfg.validate().unwrap();
196 assert!(cfg.total_fraction() <= 1.0);
197 }
198
199 #[test]
200 fn default_covers_every_engine_with_a_positive_fraction() {

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected