Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Darksonn committed Dec 10, 2024
1 parent 7c83899 commit 0a919a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_bytes_vec_alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ impl Ledger {
.is_ok()
{
entry_size.store(size, Ordering::SeqCst);
break;
return;
}
}

panic!("Ledger ran out of space.");
}

fn remove(&self, ptr: *mut u8) -> usize {
Expand Down Expand Up @@ -83,6 +85,7 @@ unsafe impl GlobalAlloc for Ledger {
}

#[test]
#[ignore]
fn test_bytes_advance() {
let mut bytes = Bytes::from(vec![10, 20, 30]);
bytes.advance(1);
Expand All @@ -97,6 +100,7 @@ fn test_bytes_truncate() {
}

#[test]
#[ignore]
fn test_bytes_truncate_and_advance() {
let mut bytes = Bytes::from(vec![10, 20, 30]);
bytes.truncate(2);
Expand All @@ -114,6 +118,7 @@ fn invalid_ptr<T>(addr: usize) -> *mut T {
}

#[test]
#[ignore]
fn test_bytes_into_vec() {
let vec = vec![33u8; 1024];

Expand Down

0 comments on commit 0a919a3

Please sign in to comment.