pub struct AlwaysAccept {
pub calls: usize,
}Expand description
A committer that accepts everything. For tests that care about which assignment the search proposes rather than how it narrows one down.
Fields§
§calls: usizeHow many test commits were requested.
Trait Implementations§
Source§impl Clone for AlwaysAccept
impl Clone for AlwaysAccept
impl Copy for AlwaysAccept
Source§impl Debug for AlwaysAccept
impl Debug for AlwaysAccept
Source§impl Default for AlwaysAccept
impl Default for AlwaysAccept
Source§impl TestCommitter for AlwaysAccept
impl TestCommitter for AlwaysAccept
Source§fn test_assignment(
&mut self,
_assignment: &[(u32, LayerRef<'_>)],
) -> Result<(), TestFailure>
fn test_assignment( &mut self, _assignment: &[(u32, LayerRef<'_>)], ) -> Result<(), TestFailure>
Validate an assignment with a
TEST_ONLY commit. Read moreSource§fn set_extra_plane(&mut self, plane_id: u32, layer: Layer)
fn set_extra_plane(&mut self, plane_id: u32, layer: Layer)
Arm one more plane in every test, alongside the assignment. Read more
Source§fn clear_extra_plane(&mut self)
fn clear_extra_plane(&mut self)
Stop arming the plane set by
TestCommitter::set_extra_plane.Auto Trait Implementations§
impl Freeze for AlwaysAccept
impl RefUnwindSafe for AlwaysAccept
impl Send for AlwaysAccept
impl Sync for AlwaysAccept
impl Unpin for AlwaysAccept
impl UnsafeUnpin for AlwaysAccept
impl UnwindSafe for AlwaysAccept
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more