ffuzzy 0.3.16

Library to generate / parse / compare ssdeep Context Triggered Piecewise Hashes (CTPH)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: Copyright (C) 2024, 2025 Tsukasa OI <floss_ssdeep@irq.a4lg.com>.

//! Tests: [`crate::internals::macros`].

#![cfg(test)]

#[forbid(unsafe_code)]
#[cfg(debug_assertions)]
#[test]
#[should_panic]
fn violation_invariant() {
    // On tests, an invariant is just a debug_assert without an unsafe block.
    super::invariant!(false);
}