Skip to content

Commit

Permalink
Add remaining two derive tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Sep 11, 2023
1 parent 1d502bb commit 09a7a8a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions experimental/zerotrie/tests/derive_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,22 @@ struct DeriveTest_ZeroTriePerfectHash_ZeroVec<'data> {
_data: ZeroTriePerfectHash<ZeroVec<'data, u8>>,
}

#[test]
#[ignore] // https://github.com/rust-lang/rust/issues/98906
#[cfg(all(feature = "databake", feature = "alloc"))]
fn bake_ZeroTriePerfectHash_ZeroVec() {
use databake::*;
extern crate std;
test_bake!(
DeriveTest_ZeroTriePerfectHash_ZeroVec<'static>,
crate::DeriveTest_ZeroTriePerfectHash_ZeroVec {
_data: zerotrie::ZeroTriePerfectHash {
store: zerovec::ZeroVec::new(),
}
},
);
}

#[cfg_attr(feature = "yoke", derive(yoke::Yokeable))]
#[cfg_attr(feature = "zerofrom", derive(zerofrom::ZeroFrom))]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
Expand All @@ -77,3 +93,19 @@ struct DeriveTest_ZeroTrieExtendedCapacity_ZeroVec<'data> {
#[cfg_attr(feature = "serde", serde(borrow))]
_data: ZeroTrieExtendedCapacity<ZeroVec<'data, u8>>,
}

#[test]
#[ignore] // https://github.com/rust-lang/rust/issues/98906
#[cfg(all(feature = "databake", feature = "alloc"))]
fn bake_ZeroTrieExtendedCapacity_ZeroVec() {
use databake::*;
extern crate std;
test_bake!(
DeriveTest_ZeroTrieExtendedCapacity_ZeroVec<'static>,
crate::DeriveTest_ZeroTrieExtendedCapacity_ZeroVec {
_data: zerotrie::ZeroTrieExtendedCapacity {
store: zerovec::ZeroVec::new(),
}
},
);
}

0 comments on commit 09a7a8a

Please sign in to comment.