Browse Source
The function had been inserted between the third and fourth lines of the doc comment on enforce_personal_ownership_policy, splitting it in two. Moved it below that function so the comment reads as one block again. Simplified the check to the same idiom Cipher::to_json already uses for these exact three fields (as_str().is_none_or(str::is_empty)), and noted the relationship between the two in the doc comment: to_json discards the type-data of stored SSH ciphers whose fields are missing or empty, while this rejects them before they are written. Collapsed the four test functions into one table of cases, and added two the originals did not cover: a non-string field, and type-data with no fields at all. Each case carries a label that is printed on failure, so a broken case still says which one it was.pull/7584/head
1 changed files with 27 additions and 47 deletions
Loading…
Reference in new issue