MCPcopy Create free account
hub / github.com/devashishdxt/cli-table / test_row_from_str_arr

Function test_row_from_str_arr

cli-table/src/table.rs:459–464  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

457
458 #[test]
459 fn test_row_from_str_arr() {
460 let table: TableStruct = vec![&["Hello", "World"], &["Scooby", "Doo"]].table();
461 assert_eq!(2, table.rows.len());
462 assert_eq!(2, table.rows[0].cells.len());
463 assert_eq!(2, table.rows[1].cells.len());
464 }
465}

Callers

nothing calls this directly

Calls 1

tableMethod · 0.80

Tested by

no test coverage detected