sct 0.2.0

Certificate transparency SCT verification library
Documentation
use super::Error;

#[test]
fn test_unknown_log_is_not_fatal() {
    assert_eq!(false, Error::UnknownLog.should_be_fatal());
}

#[test]
fn test_unknown_sct_version_is_not_fatal() {
    assert_eq!(false, Error::UnsupportedSCTVersion.should_be_fatal());
}

#[test]
fn test_other_errors_are_fatal() {
    assert_eq!(true, Error::MalformedSCT.should_be_fatal());
    assert_eq!(true, Error::InvalidSignature.should_be_fatal());
    assert_eq!(true, Error::TimestampInFuture.should_be_fatal());
}