INNER CODE UNIT · Rust

test_create_pdf_with_options

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

    fn test_create_pdf_with_options() {
        let result = create_pdf(
            "Custom Document".to_string(),
            &mut &b"secret data"[..],
            "hunter2",
            Some("Recovery key:".to_string()),
            Some(true),
            Some(PageSize::Letter),
            Some(true),
        );
        assert!(result.is_ok());
    }

    #[test]
    fn test_create_pdf_empty_data() {
        let result = create_pdf(
            "Empty".to_string(),
            &mut &b""[..],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…