chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

55
vendor/opaque-debug/tests/mod.rs vendored Normal file
View File

@@ -0,0 +1,55 @@
#![allow(dead_code)]
struct Foo {
secret: u64,
}
opaque_debug::implement!(Foo);
struct FooGeneric<T> {
secret: u64,
generic: T,
}
opaque_debug::implement!(FooGeneric<T>);
struct FooManyGenerics<T, U, V> {
secret: u64,
generic1: T,
generic2: U,
generic3: V,
}
opaque_debug::implement!(FooManyGenerics<T, U, V>);
#[test]
fn debug_formatting() {
let s = format!("{:?}", Foo { secret: 42 });
assert_eq!(s, "Foo { ... }");
}
#[test]
fn debug_formatting_generic() {
let s = format!(
"{:?}",
FooGeneric::<()> {
secret: 42,
generic: ()
}
);
assert_eq!(s, "FooGeneric<()> { ... }");
}
#[test]
fn debug_formatting_many_generics() {
let s = format!(
"{:?}",
FooManyGenerics::<(), u8, &str> {
secret: 42,
generic1: (),
generic2: 0u8,
generic3: "hello",
}
);
assert_eq!(s, "FooManyGenerics<(), u8, &str> { ... }");
}