rops 0.1.7

SOPS-like library in pure Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::{fmt::Debug, str::FromStr};

use crate::*;

pub struct FromStrTestUtils;

impl FromStrTestUtils {
    pub fn assert_parse<T: MockTestUtil + MockDisplayTestUtil + FromStr + PartialEq + Debug>()
    where
        T::Err: Debug,
    {
        pretty_assertions::assert_eq!(T::mock(), T::mock_display().parse().unwrap())
    }
}