Closed
Description
Initial coverage
|| actors/market/src/deal.rs: 0/15
|| actors/market/src/lib.rs: 9/816
|| actors/market/src/policy.rs: 0/18
|| actors/market/src/state.rs: 21/311
Unit tests to migrate/check
market $ go test -v ./... | grep PASS | sed 's/--- PASS:/- [ ]/g' | sed 's/ (.*)//g' | grep -v PASS
- TestRemoveAllError
- TestMarketActor
- TestMarketActor/simple_construction
- TestMarketActor/AddBalance
- TestMarketActor/AddBalance/adds_to_provider_escrow_funds
- TestMarketActor/AddBalance/fails_unless_called_by_an_account_actor
- TestMarketActor/AddBalance/adds_to_non-provider_escrow_funds
- TestMarketActor/AddBalance/fail_when_balance_is_zero
- TestMarketActor/WithdrawBalance
- TestMarketActor/WithdrawBalance/fails_with_a_negative_withdraw_amount
- TestMarketActor/WithdrawBalance/fails_if_withdraw_from_non_provider_funds_is_not_initiated_by_the_recipient
- TestMarketActor/WithdrawBalance/fails_if_withdraw_from_provider_funds_is_not_initiated_by_the_owner_or_worker
- TestMarketActor/WithdrawBalance/withdraws_from_provider_escrow_funds_and_sends_to_owner
- TestMarketActor/WithdrawBalance/withdraws_from_non-provider_escrow_funds
- TestMarketActor/WithdrawBalance/client_withdrawing_more_than_escrow_balance_limits_to_available_funds
- TestMarketActor/WithdrawBalance/worker_withdrawing_more_than_escrow_balance_limits_to_available_funds
- TestMarketActor/WithdrawBalance/balance_after_withdrawal_must_ALWAYS_be_greater_than_or_equal_to_locked_amount
- TestMarketActor/WithdrawBalance/worker_balance_after_withdrawal_must_account_for_slashed_funds
- TestDealOpsByEpochOffset
- TestDealOpsByEpochOffset/deal_starts_on_day_boundary
- TestDealOpsByEpochOffset/deal_starts_partway_through_day
- TestPublishStorageDeals
- TestPublishStorageDeals/simple_deal
- TestPublishStorageDeals/provider_and_client_addresses_are_resolved_before_persisting_state_and_sent_to_VerigReg_actor_for_a_verified_deal
- TestPublishStorageDeals/publish_a_deal_after_activating_a_previous_deal_which_has_a_start_epoch_far_in_the_future
- TestPublishStorageDeals/publish_a_deal_with_enough_collateral_when_circulating_supply_>_0
- TestPublishStorageDeals/publish_multiple_deals_for_different_clients_and_ensure_balances_are_correct
- TestPublishStorageDealsFailures
- TestPublishStorageDealsFailures/provider_collateral_less_than_bound
- TestPublishStorageDealsFailures/provider_does_not_have_enough_balance_for_collateral
- TestPublishStorageDealsFailures/deal_end_after_deal_start
- TestPublishStorageDealsFailures/negative_client_collateral
- TestPublishStorageDealsFailures/no_entry_for_client_in_locked__balance_table
- TestPublishStorageDealsFailures/zero_piece_size
- TestPublishStorageDealsFailures/piece_size_less_than_128_bytes
- TestPublishStorageDealsFailures/current_epoch_greater_than_start_epoch
- TestPublishStorageDealsFailures/negative_provider_collateral
- TestPublishStorageDealsFailures/provider_collateral_greater_than_max_collateral
- TestPublishStorageDealsFailures/client_does_not_have_enough_balance_for_collateral
- TestPublishStorageDealsFailures/unable_to_resolve_client_address
- TestPublishStorageDealsFailures/signature_is_invalid
- TestPublishStorageDealsFailures/bad_piece_CID
- TestPublishStorageDealsFailures/deal_duration_greater_than_max_deal_duration
- TestPublishStorageDealsFailures/price_per_epoch_greater_than_total_filecoin
- TestPublishStorageDealsFailures/client_collateral_greater_than_max_collateral
- TestPublishStorageDealsFailures/no_entry_for_provider_in_locked__balance_table
- TestPublishStorageDealsFailures/piece_size_is_not_a_power_of_2
- TestPublishStorageDealsFailures/negative_price_per_epoch
- TestPublishStorageDealsFailures/fail_when_client_has_some_funds_but_not_enough_for_a_deal
- TestPublishStorageDealsFailures/fail_when_provider_has_some_funds_but_not_enough_for_a_deal
- TestPublishStorageDealsFailures/fail_when_deals_have_different_providers
- TestPublishStorageDealsFailures/fail_when_caller_is_not_of_signable_type
- TestPublishStorageDealsFailures/fail_when_no_deals_in_params
- TestPublishStorageDealsFailures/fail_to_resolve_provider_address
- TestPublishStorageDealsFailures/caller_is_not_the_same_as_the_worker_address_for_miner
- TestPublishStorageDealsFailures/fails_if_provider_is_not_a_storage_miner_actor
- TestActivateDeals
- TestActivateDeals/active_deals_multiple_times_with_different_providers
- TestActivateDealFailures
- TestActivateDealFailures/fail_when_caller_is_not_the_provider_of_the_deal
- TestActivateDealFailures/fail_when_caller_is_not_a_StorageMinerActor
- TestActivateDealFailures/fail_when_deal_has_not_been_published_before
- TestActivateDealFailures/fail_when_deal_has_already_been_activated
- TestActivateDealFailures/fail_when_current_epoch_greater_than_start_epoch_of_deal
- TestActivateDealFailures/fail_when_end_epoch_of_deal_greater_than_sector_expiry
- TestActivateDealFailures/fail_to_activate_all_deals_if_one_deal_fails
- TestOnMinerSectorsTerminate
- TestOnMinerSectorsTerminate/terminate_multiple_deals_from_multiple_providers
- TestOnMinerSectorsTerminate/ignore_deal_proposal_that_does_not_exist
- TestOnMinerSectorsTerminate/terminate_valid_deals_along_with_just-expired_deal
- TestOnMinerSectorsTerminate/terminate_valid_deals_along_with_expired_and_cleaned-up_deal
- TestOnMinerSectorsTerminate/terminating_a_deal_the_second_time_does_not_change_it's_slash_epoch
- TestOnMinerSectorsTerminate/terminating_new_deals_and_an_already_terminated_deal_only_terminates_the_new_deals
- TestOnMinerSectorsTerminate/do_not_terminate_deal_if_end_epoch_is_equal_to_or_less_than_current_epoch
- TestOnMinerSectorsTerminate/fail_when_caller_is_not_a_StorageMinerActor
- TestOnMinerSectorsTerminate/fail_when_caller_is_not_the_provider_of_the_deal
- TestOnMinerSectorsTerminate/fail_when_deal_has_been_published_but_not_activated
- TestOnMinerSectorsTerminate/termination_of_all_deals_should_fail_when_one_deal_fails
- TestCronTick
- TestCronTick/fail_when_deal_is_activated_but_proposal_is_not_found
- TestCronTick/fail_when_deal_update_epoch_is_in_the_future
- TestCronTick/crontick_for_a_deal_at_it's_start_epoch_results_in_zero_payment_and_no_slashing
- TestCronTick/slash_a_deal_and_make_payment_for_another_deal_in_the_same_epoch
- TestCronTick/cannot_publish_the_same_deal_twice_BEFORE_a_cron_tick
- TestRandomCronEpochDuringPublish
- TestRandomCronEpochDuringPublish/cron_processing_happens_at_processing_epoch,_not_start_epoch
- TestRandomCronEpochDuringPublish/deals_are_scheduled_for_expiry_later_than_the_end_epoch
- TestRandomCronEpochDuringPublish/deal_is_processed_after_it's_end_epoch_->_should_expire_correctly
- TestRandomCronEpochDuringPublish/activation_after_deal_start_epoch_but_before_it_is_processed_fails
- TestRandomCronEpochDuringPublish/cron_processing_of_deal_after_missed_activation_should_fail_and_slash
- TestCronTickTimedoutDeals
- TestCronTickTimedoutDeals/timed_out_deal_is_slashed_and_deleted
- TestCronTickTimedoutDeals/publishing_timed_out_deal_again_should_work_after_cron_tick_as_it_should_no_longer_be_pending
- TestCronTickTimedoutDeals/timed_out_and_verified_deals_are_slashed,_deleted_AND_sent_to_the_Registry_actor
- TestCronTickDealExpiry
- TestCronTickDealExpiry/all_payments_are_made_for_a_deal_->deal_expires->_client_withdraws_collateral_and_client_account_is_removed
- TestCronTickDealExpiry/deal_expiry_->_regular_payments_till_deal_expires_and_then_locked_funds_are_unlocked
- TestCronTickDealExpiry/deal_expiry_->_deal_is_correctly_processed_twice_in_the_same_crontick
- TestCronTickDealExpiry/deal_expiry_->_payment_for_a_deal_if_deal_is_already_expired_before_a_cron_tick
- TestCronTickDealExpiry/expired_deal_should_unlock_the_remaining_client_and_provider_locked_balance_after_payment_and_deal_should_be_deleted
- TestCronTickDealSlashing
- TestCronTickDealSlashing/deal_is_terminated_at_the_activation_epoch_and_then_the_first_crontick_happens
- TestCronTickDealSlashing/deal_is_slashed_and_then_deal_expiry_happens_on_crontick,_but_slashing_still_occurs
- TestCronTickDealSlashing/deal_is_slashed_just_BEFORE_the_end_epoch
- TestCronTickDealSlashing/deal_is_slashed_after_the_startepoch_and_then_the_first_crontick_happens
- TestCronTickDealSlashing/deal_is_slashed_at_the_startepoch_and_then_the_first_crontick_happens
- TestCronTickDealSlashing/deal_is_slashed_before_the_startepoch_and_then_the_first_crontick_happens
- TestCronTickDealSlashing/slash_multiple_deals_in_the_same_epoch
- TestCronTickDealSlashing/deal_is_correctly_processed_twice_in_the_same_crontick_and_slashed
- TestCronTickDealSlashing/regular_payments_till_deal_is_slashed_and_then_slashing_is_processed
- TestCronTickDealSlashing/regular_payments_till_deal_expires_and_then_we_attempt_to_slash_it_but_it_will_NOT_be_slashed
- TestCronTickDealSlashing/deal_is_slashed_AT_the_end_epoch_->_should_NOT_be_slashed_and_should_be_considered_expired
- TestMarketActorDeals
- TestMaxDealLabelSize
- TestComputeDataCommitment
- TestComputeDataCommitment/successfully_compute_cid
- TestComputeDataCommitment/success_on_empty_piece_info
- TestComputeDataCommitment/success_with_multiple_sector_commitments
- TestComputeDataCommitment/fail_when_deal_proposal_is_absent
- TestComputeDataCommitment/fail_when_syscall_returns_an_error
- TestComputeDataCommitment/fail_whole_call_when_one_deal_proposal_of_one_sector_is_absent
- TestComputeDataCommitment/fail_whole_call_when_one_commitment_fails_syscall
- TestVerifyDealsForActivation
- TestVerifyDealsForActivation/verify_deal_and_get_deal_weight_for_unverified_deal_proposal
- TestVerifyDealsForActivation/verify_deal_and_get_deal_weight_for_verified_deal_proposal
- TestVerifyDealsForActivation/verification_and_weights_for_verified_and_unverified_deals
- TestVerifyDealsForActivation/fail_when_caller_is_not_a_StorageMinerActor
- TestVerifyDealsForActivation/fail_when_deal_proposal_is_not_found
- TestVerifyDealsForActivation/fail_when_caller_is_not_the_provider
- TestVerifyDealsForActivation/fail_when_current_epoch_is_greater_than_proposal_start_epoch
- TestVerifyDealsForActivation/fail_when_deal_end_epoch_is_greater_than_sector_expiration
- TestVerifyDealsForActivation/fail_when_the_same_deal_ID_is_passed_multiple_times
- TestLockedFundTrackingStates