mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 11:25:41 +02:00
Improve test coverage of command examples (#5650)
* Ignore `cargo tarpaulin` output files * Add expected result for `columns` example Examples without provided expected output will never be tested. The subset of commands available in `test_examples()` is limited thus excluding the tests depending on other commands * Add example test harness to `reject` * Test and fix `wrap` example * Test and fix `drop column` example * Update `from ods` examples * Update `from xlsx` examples * Run `to nuon` examples * Run `hash base64` examples * Add example output to `path parse` * Test and fix the `grid` examples
This commit is contained in:
committed by
GitHub
parent
230c36f2fb
commit
507f24d029
@ -232,9 +232,15 @@ fn action(
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::{action, ActionType, Base64Config};
|
||||
use super::{action, ActionType, Base64, Base64Config};
|
||||
use nu_protocol::{Span, Value};
|
||||
|
||||
#[test]
|
||||
fn test_examples() {
|
||||
use crate::test_examples;
|
||||
test_examples(Base64 {})
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn base64_encode_standard() {
|
||||
let word = Value::string("username:password", Span::test_data());
|
||||
|
Reference in New Issue
Block a user