Skip to content

Commit

Permalink
chore: Add explanatory comments
Browse files Browse the repository at this point in the history
  • Loading branch information
netrome committed Jan 30, 2025
1 parent 7382104 commit 92b1d22
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions crates/fraud_proofs/global_merkle_root/storage/src/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ mod tests {
};

#[test]
/// When encountering a transaction with a coin output,
/// `process_output` should ensure this coin is
/// populated in the `Coins` table.
fn process_output__should_insert_coin() {
let mut rng = StdRng::seed_from_u64(1337);

Expand Down Expand Up @@ -372,6 +375,9 @@ mod tests {
}

#[test]
/// When encountering a transaction with a contract created output,
/// `process_output` should ensure an appropriate contract UTxO is
/// populated in the `ContractCreated` table.
fn process_output__should_insert_latest_contract_utxo_when_contract_created() {
let mut rng = StdRng::seed_from_u64(1337);

Expand Down Expand Up @@ -410,6 +416,9 @@ mod tests {
}

#[test]
/// When encountering a transaction with a contract output,
/// `process_output` should ensure an appropriate contract UTxO is
/// populated in the `ContractCreated` table.
fn process_output__should_update_latest_contract_utxo_when_interacting_with_contract()
{
let mut rng = StdRng::seed_from_u64(1337);
Expand Down Expand Up @@ -456,6 +465,10 @@ mod tests {
}

#[test]
/// When encountering a transaction with a coin input,
/// `process_input` should ensure this coin is
/// removed from the `Coins` table, as this coin is no longer
/// a part of the active UTxO set.
fn process_input__should_remove_coin() {
let mut rng = StdRng::seed_from_u64(1337);

Expand Down

0 comments on commit 92b1d22

Please sign in to comment.