| 1 |
// Copyright 2025 Don MacAskill. Licensed under MIT or Apache-2.0. |
| 2 |
|
| 3 |
#![cfg(test)] |
| 4 |
#![allow(dead_code)] |
| 5 |
|
| 6 |
use crate::CrcParams; |
| 7 |
use crc::{Crc, Table}; |
| 8 |
|
| 9 |
pub struct CrcTestConfig<T: crc::Width, I: crc::Implementation + 'static> { |
| 10 |
pub params: CrcParams, |
| 11 |
pub reference_impl: &'static Crc<T, I>, |
| 12 |
} |
| 13 |
|
| 14 |
pub type Crc16TestConfig = CrcTestConfig<u16, Table<16>>; |
| 15 |
|
| 16 |
pub type Crc32TestConfig = CrcTestConfig<u32, Table<16>>; |
| 17 |
|
| 18 |
pub type Crc64TestConfig = CrcTestConfig<u64, Table<16>>; |