MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / test_error_row_iterator

Function test_error_row_iterator

graphlite/src/exec/row_iterator.rs:219–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217
218 #[test]
219 fn test_error_row_iterator() {
220 let error = ExecutionError::UnsupportedOperator("test error".to_string());
221 let mut iter = ErrorRowIterator::new(error);
222
223 assert_eq!(iter.size_hint_rows(), Some(0));
224
225 let result = iter.next();
226 assert!(result.is_some());
227 assert!(result.unwrap().is_err());
228
229 // Second call returns None (error consumed)
230 assert!(iter.next().is_none());
231 }
232
233 #[test]
234 fn test_collect_rows() {

Callers

nothing calls this directly

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected