Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verifreg Actor Test Coverage #33

Closed
46 tasks done
vyzo opened this issue Mar 2, 2022 · 0 comments
Closed
46 tasks done

Verifreg Actor Test Coverage #33

vyzo opened this issue Mar 2, 2022 · 0 comments
Assignees
Labels
Milestone

Comments

@vyzo
Copy link
Contributor

vyzo commented Mar 2, 2022

Initial coverage

|| actors/verifreg/src/lib.rs: 0/294
|| actors/verifreg/src/state.rs: 0/7
|| actors/verifreg/src/types.rs: 0/1

Unit tests to migrate/check

verifreg $ go test -v ./... | grep PASS | sed 's/--- PASS:/- [ ]/g' | sed 's/ (.*)//g' | grep -v PASS
  • TestConstruction
    • TestConstruction/successful_construction_with_root_ID_address
    • TestConstruction/non-ID_address_root_is_resolved_to_an_ID_address_for_construction
    • TestConstruction/fails_if_root_cannot_be_resolved_to_an_ID_address
  • TestAddVerifier
    • TestAddVerifier/fails_when_caller_is_not_the_root_key
    • TestAddVerifier/fails_when_allowance_less_than_MinVerifiedDealSize
    • TestAddVerifier/fails_when_root_is_added_as_a_verifier
    • TestAddVerifier/fails_when_verified_client_is_added_as_a_verifier
    • TestAddVerifier/fails_to_add_verifier_with_non-ID_address_if_not_resolvable_to_ID_address
    • TestAddVerifier/successfully_add_a_verifier
    • TestAddVerifier/successfully_add_a_verifier_after_resolving_to_ID_address
  • TestRemoveVerifier
    • TestRemoveVerifier/fails_when_caller_is_not_the_root_key
    • TestRemoveVerifier/fails_when_verifier_does_not_exist
    • TestRemoveVerifier/successfully_remove_a_verifier
    • TestRemoveVerifier/add_verifier_with_non_ID_address_and_then_remove_with_its_ID_address
  • TestAddVerifiedClient
    • TestAddVerifiedClient/successfully_add_multiple_verified_clients_from_different_verifiers
    • TestAddVerifiedClient/verifier_successfully_adds_a_verified_client_and_then_fails_on_adding_another_verified_client_because_of_low_allowance
    • TestAddVerifiedClient/successfully_add_a_verified_client_after_resolving_it's_given_non_ID_address_to_it's_ID_address
    • TestAddVerifiedClient/success_when_allowance_is_equal_to_MinVerifiedDealSize
    • TestAddVerifiedClient/fails_to_add_verified_client_if_address_is_not_resolvable_to_ID_address
    • TestAddVerifiedClient/fails_when_allowance_is_less_than_MinVerifiedDealSize
    • TestAddVerifiedClient/fails_when_caller_is_not_a_verifier
    • TestAddVerifiedClient/fails_when_verifier_cap_is_less_than_client_allowance
    • TestAddVerifiedClient/fails_when_root_is_added_as_a_verified_client
    • TestAddVerifiedClient/fails_when_verifier_is_added_as_a_verified_client
  • TestUseBytes
    • TestUseBytes/successfully_consume_deal_bytes_for_deals_from_different_verified_clients
    • TestUseBytes/successfully_consume_deal_bytes_for_verified_client_and_then_fail_on_next_attempt_because_it_does_NOT_have_enough_allowance
    • TestUseBytes/successfully_consume_deal_bytes_after_resolving_verified_client_address
    • TestUseBytes/successfully_consume_deal_for_verified_client_and_then_fail_on_next_attempt_because_it_has_been_removed
    • TestUseBytes/fail_if_caller_is_not_storage_market_actor
    • TestUseBytes/fail_if_deal_size_is_less_than_min_verified_deal_size
    • TestUseBytes/fail_if_verified_client_does_not_exist
    • TestUseBytes/fail_if_deal_size_is_greater_than_verified_client_cap
  • TestRestoreBytes
    • TestRestoreBytes/successfully_restore_deal_bytes_for_different_verified_clients
    • TestRestoreBytes/successfully_restore_bytes_after_using_bytes_reduces_a_client's_cap
    • TestRestoreBytes/successfully_restore_deal_bytes_after_resolving_client_address
    • TestRestoreBytes/successfully_restore_bytes_after_using_bytes_removes_a_client
    • TestRestoreBytes/fail_if_caller_is_not_storage_market_actor
    • TestRestoreBytes/fail_if_deal_size_is_less_than_min_verified_deal_size
    • TestRestoreBytes/fails_if_attempt_to_restore_bytes_for_root
    • TestRestoreBytes/fails_if_attempt_to_restore_bytes_for_verifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

No branches or pull requests

4 participants