osp-cli 1.5.1

CLI and REPL for querying and managing OSP infrastructure data
Documentation
use crate::core::row::Row;

/// Identity stage for row payloads.
///
/// Keeping even the trivial copy verb in `src/dsl/verbs/*` preserves one clear
/// execution owner per DSL verb.
pub fn apply(rows: Vec<Row>) -> Vec<Row> {
    rows
}

#[cfg(test)]
mod tests {
    use super::apply;
    use serde_json::json;

    #[test]
    fn copy_stage_is_identity_for_rows_unit() {
        let rows = vec![
            json!({"uid": "alice"})
                .as_object()
                .cloned()
                .expect("object"),
        ];
        assert_eq!(apply(rows.clone()), rows);
    }
}