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

Function batch_parse

nodedb/src/engine/timeseries/ilp.rs:297–306  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

295
296 #[test]
297 fn batch_parse() {
298 let input = "cpu,host=a value=1.0 1000\n\
299 # comment\n\
300 mem,host=b used=512i 2000\n\
301 \n\
302 disk free=100.0 3000";
303 let results = parse_batch(input);
304 assert_eq!(results.len(), 3);
305 assert!(results.iter().all(|r| r.is_ok()));
306 }
307
308 #[test]
309 fn negative_values() {

Callers

nothing calls this directly

Calls 1

parse_batchFunction · 0.85

Tested by

no test coverage detected