mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
Merge #2245
2245: Add test to validate cli r=irevoire a=MarinPostma followup on #2242 and #2243 Add a test to make sure the cli is valid, and add a CI task to run the tests in debug to make sure we hit debug assertions. FYI `@curquiza,` because of CI changes Co-authored-by: ad hoc <postma.marin@protonmail.com>
This commit is contained in:
commit
d1c0ecceb9
3 changed files with 31 additions and 1 deletions
|
@ -258,3 +258,13 @@ fn load_ocsp(filename: &Option<PathBuf>) -> anyhow::Result<Vec<u8>> {
|
|||
|
||||
Ok(ret)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_valid_opt() {
|
||||
assert!(Opt::try_parse_from(Some("")).is_ok());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue