Skip to content

Commit

Permalink
mutants::skip
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Oct 17, 2024
1 parent 9f7435b commit ca07163
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions all-is-cubes/src/block/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ impl BlockAttributes {
Self::DEFAULT
}

#[mutants::skip] // currently used only as an optimization, and hard to test usefully
pub(crate) fn rotationally_symmetric(&self) -> bool {
let Self {
display_name: _,
Expand Down
1 change: 1 addition & 0 deletions all-is-cubes/src/space/light/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ impl LightUpdateQueue {

/// Removes and returns the highest priority queue entry.
#[inline]
#[mutants::skip] // if it fails to pop, causes hangs
pub fn pop(&mut self) -> Option<LightUpdateRequest> {
if let Some(sweep) = &mut self.sweep {
if peek_priority(&self.queue).is_none_or(|p| self.sweep_priority > p) {
Expand Down
1 change: 1 addition & 0 deletions all-is-cubes/src/space/light/updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ impl LightStorage {
}
}

#[mutants::skip] // lots of ways for this to still work when modified
pub(crate) fn light_needs_update_in_region(&mut self, region: GridAab, priority: Priority) {
let Some(region) = region.intersection_cubes(self.contents.bounds()) else {
return;
Expand Down

0 comments on commit ca07163

Please sign in to comment.