INNER CODE UNIT · Rust

test_create_pdf_empty_data

matiaskorhonen/paper-age · src/convenience.rs:135

    fn test_create_pdf_empty_data() {
        let result = create_pdf(
            "Empty".to_string(),
            &mut &b""[..],
            "passphrase",
            None,
            None,
            None,
            None,
        );
        assert!(result.is_ok());
    }

    #[test]
    fn test_error_display() {
        assert_eq!(
            PaperAgeError::Encryption("bad key".to_string()).to_string(),
            "Encryption failed: bad key"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…