Skip to content

Commit 0f49dcd

Browse files
committed
fix test and stop ignoring things
1 parent c4e6348 commit 0f49dcd

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

crates/bevy_mod_scripting_core/src/bindings/pretty_print.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,11 +577,16 @@ mod test {
577577
let allocator = world.allocator();
578578
let mut allocator_write = allocator.write();
579579
let reflect_reference = ReflectReference::new_allocated(2usize, &mut allocator_write);
580+
let id = match reflect_reference.base.base_id {
581+
ReflectBase::Owned(ref id) => id.to_string(),
582+
_ => panic!("Expected owned allocation"),
583+
};
584+
580585
drop(allocator_write);
581586

582587
assert_eq!(
583588
reflect_reference.display_with_world(world.clone()),
584-
"<Reference to Allocation(0)(usize) -> usize>"
589+
format!("<Reference to Allocation({id})(usize) -> usize>")
585590
);
586591

587592
assert_eq!(
@@ -591,7 +596,7 @@ mod test {
591596

592597
assert_eq!(
593598
reflect_reference.display_without_world(),
594-
format!("<Reference to Allocation(0)({:?})>", type_id)
599+
format!("<Reference to Allocation({id})({:?})>", type_id)
595600
);
596601
}
597602
}

crates/xtask/src/main.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -916,10 +916,6 @@ impl Xtasks {
916916
"html",
917917
"--branch",
918918
"--ignore-not-existing",
919-
"--ignore",
920-
"../*",
921-
"--ignore",
922-
"/*",
923919
"-o",
924920
"target/coverage/html",
925921
],
@@ -939,10 +935,6 @@ impl Xtasks {
939935
"lcov",
940936
"--branch",
941937
"--ignore-not-existing",
942-
"--ignore",
943-
"../*",
944-
"--ignore",
945-
"/*",
946938
"-o",
947939
"target/coverage/lcov.info",
948940
],

0 commit comments

Comments
 (0)