Skip to content

Commit

Permalink
Remove track_caller directives
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteNacked committed Sep 4, 2024
1 parent 86843d3 commit fa6c58a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions gtest/src/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ impl Log {
}

/// Set the payload of the log with bytes.
#[track_caller]
pub fn payload_bytes(mut self, payload: impl AsRef<[u8]>) -> Self {
if self.payload.is_some() {
panic!("Payload was already set for this log");
Expand All @@ -241,7 +240,6 @@ impl Log {
}

/// Set the source of the log.
#[track_caller]
pub fn source(mut self, source: impl Into<ProgramIdWrapper>) -> Self {
if self.source.is_some() {
panic!("Source was already set for this log");
Expand All @@ -253,7 +251,6 @@ impl Log {
}

/// Set the destination of the log.
#[track_caller]
pub fn dest(mut self, dest: impl Into<ProgramIdWrapper>) -> Self {
if self.destination.is_some() {
panic!("Destination was already set for this log");
Expand All @@ -264,7 +261,6 @@ impl Log {
}

/// Set the reply code for this log.
#[track_caller]
pub fn reply_code(mut self, reply_code: ReplyCode) -> Self {
if self.reply_code.is_some() {
panic!("Reply code was already set for this log");
Expand All @@ -279,7 +275,6 @@ impl Log {
}

/// Set the reply destination for this log.
#[track_caller]
pub fn reply_to(mut self, reply_to: MessageId) -> Self {
if self.reply_to.is_some() {
panic!("Reply destination was already set for this log");
Expand Down Expand Up @@ -431,7 +426,6 @@ impl BlockRunResult {

/// Asserts that the message panicked and that the panic contained a
/// given message.
#[track_caller]
pub fn assert_panicked_with(&self, message_id: MessageId, msg: impl Into<String>) {
let panic_log = self.message_panic_log(message_id);
assert!(panic_log.is_some(), "Program did not panic");
Expand Down
1 change: 0 additions & 1 deletion gtest/src/manager/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ impl ExtManager {
.map_err(TestError::ReadStateError)
}

#[track_caller]
pub(crate) fn read_memory_pages(&self, program_id: &ProgramId) -> BTreeMap<GearPage, PageBuf> {
Actors::access(*program_id, |actor| {
let program = match actor.unwrap_or_else(|| panic!("Actor id {program_id:?} not found"))
Expand Down
1 change: 0 additions & 1 deletion gtest/src/state/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ struct Balance {
}

impl Balance {
#[track_caller]
fn new(amount: Value) -> Self {
if amount < EXISTENTIAL_DEPOSIT {
panic!(
Expand Down

0 comments on commit fa6c58a

Please sign in to comment.