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

test(axelar_gateway)!: upgrade testing #215

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open

Conversation

Foivos
Copy link
Collaborator

@Foivos Foivos commented Nov 26, 2024

No description provided.

Foivos and others added 27 commits November 15, 2024 17:19
@Foivos Foivos requested review from npty and a team as code owners November 26, 2024 16:07
Copy link
Contributor

github-actions bot commented Nov 26, 2024

Code Coverage Summary

Click to see the summary
Coverage report for module ./move/abi/

+-------------------------+
| Move Coverage Summary   |
+-------------------------+
Module 00000000000000000000000000000000000000000000000000000000000000a0::abi
>>> % Module coverage: 96.38
+-------------------------+
| % Move Coverage: 96.38  |
+-------------------------+


 NO tests found for module ./move/axelar_gateway/. Skipped.


 NO tests found for module ./move/example/. Skipped.

Coverage report for module ./move/gas_service/

+-------------------------+
| Move Coverage Summary   |
+-------------------------+
Module 00000000000000000000000000000000000000000000000000000000000000a2::events
>>> % Module coverage: 100.00
Module 00000000000000000000000000000000000000000000000000000000000000a2::gas_service_v0
>>> % Module coverage: 100.00
Module 00000000000000000000000000000000000000000000000000000000000000a2::gas_service
>>> % Module coverage: 100.00
+-------------------------+
| % Move Coverage: 100.00  |
+-------------------------+

Coverage report for module ./move/governance/

+-------------------------+
| Move Coverage Summary   |
+-------------------------+
Module 00000000000000000000000000000000000000000000000000000000000000a3::governance
>>> % Module coverage: 100.00
+-------------------------+
| % Move Coverage: 100.00  |
+-------------------------+


 NO tests found for module ./move/interchain_token/. Skipped.


 NO tests found for module ./move/its/. Skipped.

Coverage report for module ./move/operators/

+-------------------------+
| Move Coverage Summary   |
+-------------------------+
Module 00000000000000000000000000000000000000000000000000000000000000a4::operators
>>> % Module coverage: 96.58
+-------------------------+
| % Move Coverage: 96.58  |
+-------------------------+

Coverage report for module ./move/relayer_discovery/

+-------------------------+
| Move Coverage Summary   |
+-------------------------+
Module 00000000000000000000000000000000000000000000000000000000000000aa::transaction
>>> % Module coverage: 100.00
Module 00000000000000000000000000000000000000000000000000000000000000aa::events
>>> % Module coverage: 55.56
Module 00000000000000000000000000000000000000000000000000000000000000aa::relayer_discovery_v0
>>> % Module coverage: 86.49
Module 00000000000000000000000000000000000000000000000000000000000000aa::owner_cap
>>> % Module coverage: 100.00
Module 00000000000000000000000000000000000000000000000000000000000000aa::discovery
>>> % Module coverage: 70.80
+-------------------------+
| % Move Coverage: 84.92  |
+-------------------------+

Coverage report for module ./move/squid/

+-------------------------+
| Move Coverage Summary   |
+-------------------------+
Module 00000000000000000000000000000000000000000000000000000000000000a6::coin_bag
>>> % Module coverage: 95.72
Module 00000000000000000000000000000000000000000000000000000000000000a6::swap_type
>>> % Module coverage: 38.89
Module 00000000000000000000000000000000000000000000000000000000000000a6::swap_info
>>> % Module coverage: 100.00
Module 00000000000000000000000000000000000000000000000000000000000000a6::squid_v0
>>> % Module coverage: 91.67
Module 00000000000000000000000000000000000000000000000000000000000000a6::owner_cap
>>> % Module coverage: 100.00
Module 00000000000000000000000000000000000000000000000000000000000000a6::squid
>>> % Module coverage: 87.14
Module 00000000000000000000000000000000000000000000000000000000000000a6::deepbook_v3
>>> % Module coverage: 47.56
Module 00000000000000000000000000000000000000000000000000000000000000a6::transfers
>>> % Module coverage: 0.00
Module 00000000000000000000000000000000000000000000000000000000000000a6::discovery
>>> % Module coverage: 0.00
+-------------------------+
| % Move Coverage: 44.47  |
+-------------------------+

Coverage report for module ./move/utils/

+-------------------------+
| Move Coverage Summary   |
+-------------------------+
Module 00000000000000000000000000000000000000000000000000000000000000a7::utils
>>> % Module coverage: NaN
+-------------------------+
| % Move Coverage: NaN  |
+-------------------------+

Coverage report for module ./move/version_control/

+-------------------------+
| Move Coverage Summary   |
+-------------------------+
Module 00000000000000000000000000000000000000000000000000000000000000b0::version_control
>>> % Module coverage: 100.00
+-------------------------+
| % Move Coverage: 100.00  |
+-------------------------+

Click to see the extended report
Coverage report for module ./move/abi/

+-------------------------+
| Move Coverage Summary   |
+-------------------------+
Module 00000000000000000000000000000000000000000000000000000000000000a0::abi
	fun append_bytes
		total: 38
		covered: 35
		% coverage: 92.11
	fun append_u256
		total: 29
		covered: 29
		% coverage: 100.00
	fun decode_bytes
		total: 35
		covered: 35
		% coverage: 100.00
	fun into_bytes
		total: 4
		covered: 4
		% coverage: 100.00
	fun into_remaining_bytes
		total: 5
		covered: 0
		% coverage: 0.00
	fun new_reader
		total: 5
		covered: 5
		% coverage: 100.00
	fun new_writer
		total: 23
		covered: 23
		% coverage: 100.00
	fun read_bytes
		total: 27
		covered: 27
		% coverage: 100.00
	fun read_u256
		total: 39
		covered: 39
		% coverage: 100.00
	fun read_u8
		total: 4
		covered: 0
		% coverage: 0.00
	fun read_vector_bytes
		total: 58
		covered: 58
		% coverage: 100.00
	fun read_vector_u256
		total: 46
		covered: 46
		% coverage: 100.00
	fun skip_slot
		total: 9
		covered: 9
		% coverage: 100.00
	fun write_bytes
		total: 19
		covered: 19
		% coverage: 100.00
	fun write_u256
		total: 44
		covered: 44
		% coverage: 100.00
	fun write_u8
		total: 5
		covered: 0
		% coverage: 0.00
	fun write_vector_bytes
		total: 44
		covered: 44
		% coverage: 100.00
	fun write_vector_u256
		total: 36
		covered: 36
		% coverage: 100.00
>>> % Module coverage: 96.38
+-------------------------+
| % Move Coverage: 96.38  |
+-------------------------+


 NO tests found for module ./move/axelar_gateway/. Skipped.


 NO tests found for module ./move/example/. Skipped.

Coverage report for module ./move/gas_service/

+-------------------------+
| Move Coverage Summary   |
+-------------------------+
Module 00000000000000000000000000000000000000000000000000000000000000a2::events
	fun gas_added
		total: 7
		covered: 7
		% coverage: 100.00
	fun gas_collected
		total: 5
		covered: 5
		% coverage: 100.00
	fun gas_paid
		total: 10
		covered: 10
		% coverage: 100.00
	fun refunded
		total: 6
		covered: 6
		% coverage: 100.00
>>> % Module coverage: 100.00
Module 00000000000000000000000000000000000000000000000000000000000000a2::gas_service_v0
	fun add_gas
		total: 12
		covered: 12
		% coverage: 100.00
	fun allow_function
		total: 6
		covered: 6
		% coverage: 100.00
	fun collect_gas
		total: 10
		covered: 10
		% coverage: 100.00
	fun disallow_function
		total: 6
		covered: 6
		% coverage: 100.00
	fun new
		total: 4
		covered: 4
		% coverage: 100.00
	fun pay_gas
		total: 25
		covered: 25
		% coverage: 100.00
	fun put
		total: 5
		covered: 5
		% coverage: 100.00
	fun refund
		total: 11
		covered: 11
		% coverage: 100.00
	fun take
		total: 6
		covered: 6
		% coverage: 100.00
	fun version_control
		total: 3
		covered: 3
		% coverage: 100.00
>>> % Module coverage: 100.00
Module 00000000000000000000000000000000000000000000000000000000000000a2::gas_service
	fun add_gas
		total: 18
		covered: 18
		% coverage: 100.00
	fun allow_function
		total: 16
		covered: 16
		% coverage: 100.00
	fun collect_gas
		total: 17
		covered: 17
		% coverage: 100.00
	fun disallow_function
		total: 16
		covered: 16
		% coverage: 100.00
	fun init
		total: 17
		covered: 17
		% coverage: 100.00
	fun pay_gas
		total: 18
		covered: 18
		% coverage: 100.00
	fun refund
		total: 18
		covered: 18
		% coverage: 100.00
	fun version_control
		total: 30
		covered: 30
		% coverage: 100.00
>>> % Module coverage: 100.00
+-------------------------+
| % Move Coverage: 100.00  |
+-------------------------+

Coverage report for module ./move/governance/

+-------------------------+
| Move Coverage Summary   |
+-------------------------+
Module 00000000000000000000000000000000000000000000000000000000000000a3::governance
	fun authorize_upgrade
		total: 53
		covered: 53
		% coverage: 100.00
	fun commit_upgrade
		total: 8
		covered: 8
		% coverage: 100.00
	fun is_cap_new
		total: 9
		covered: 9
		% coverage: 100.00
	fun is_governance
		total: 17
		covered: 17
		% coverage: 100.00
	fun new
		total: 34
		covered: 34
		% coverage: 100.00
	fun take_upgrade_cap
		total: 9
		covered: 9
		% coverage: 100.00
>>> % Module coverage: 100.00
+-------------------------+
| % Move Coverage: 100.00  |
+-------------------------+


 NO tests found for module ./move/interchain_token/. Skipped.


 NO tests found for module ./move/its/. Skipped.

Coverage report for module ./move/operators/

+-------------------------+
| Move Coverage Summary   |
+-------------------------+
Module 00000000000000000000000000000000000000000000000000000000000000a4::operators
	fun add_operator
		total: 13
		covered: 13
		% coverage: 100.00
	fun init
		total: 15
		covered: 15
		% coverage: 100.00
	fun loan_cap
		total: 38
		covered: 38
		% coverage: 100.00
	fun remove_cap
		total: 10
		covered: 10
		% coverage: 100.00
	fun remove_operator
		total: 8
		covered: 8
		% coverage: 100.00
	fun restore_cap
		total: 19
		covered: 15
		% coverage: 78.95
	fun store_cap
		total: 14
		covered: 14
		% coverage: 100.00
>>> % Module coverage: 96.58
+-------------------------+
| % Move Coverage: 96.58  |
+-------------------------+

Coverage report for module ./move/relayer_discovery/

+-------------------------+
| Move Coverage Summary   |
+-------------------------+
Module 00000000000000000000000000000000000000000000000000000000000000aa::transaction
	fun new_function
		total: 5
		covered: 5
		% coverage: 100.00
	fun new_function_from_bcs
		total: 10
		covered: 10
		% coverage: 100.00
	fun new_move_call
		total: 5
		covered: 5
		% coverage: 100.00
	fun new_move_call_from_bcs
		total: 45
		covered: 45
		% coverage: 100.00
	fun new_transaction
		total: 4
		covered: 4
		% coverage: 100.00
	fun new_transaction_from_bcs
		total: 41
		covered: 41
		% coverage: 100.00
	fun package_id
		total: 11
		covered: 11
		% coverage: 100.00
	fun peel_type
		total: 13
		covered: 13
		% coverage: 100.00
>>> % Module coverage: 100.00
Module 00000000000000000000000000000000000000000000000000000000000000aa::events
	fun transaction_registered
		total: 5
		covered: 5
		% coverage: 100.00
	fun transaction_removed
		total: 4
		covered: 0
		% coverage: 0.00
>>> % Module coverage: 55.56
Module 00000000000000000000000000000000000000000000000000000000000000aa::relayer_discovery_v0
	fun allow_function
		total: 6
		covered: 6
		% coverage: 100.00
	fun disallow_function
		total: 6
		covered: 6
		% coverage: 100.00
	fun get_transaction
		total: 16
		covered: 16
		% coverage: 100.00
	fun new
		total: 5
		covered: 5
		% coverage: 100.00
	fun remove_transaction
		total: 19
		covered: 9
		% coverage: 47.37
	fun set_transaction
		total: 19
		covered: 19
		% coverage: 100.00
	fun version_control
		total: 3
		covered: 3
		% coverage: 100.00
>>> % Module coverage: 86.49
Module 00000000000000000000000000000000000000000000000000000000000000aa::owner_cap
	fun create
		total: 4
		covered: 4
		% coverage: 100.00
>>> % Module coverage: 100.00
Module 00000000000000000000000000000000000000000000000000000000000000aa::discovery
	fun allow_function
		total: 16
		covered: 16
		% coverage: 100.00
	fun disallow_function
		total: 16
		covered: 16
		% coverage: 100.00
	fun get_transaction
		total: 14
		covered: 14
		% coverage: 100.00
	fun init
		total: 19
		covered: 0
		% coverage: 0.00
	fun register_transaction
		total: 21
		covered: 21
		% coverage: 100.00
	fun remove_transaction
		total: 21
		covered: 0
		% coverage: 0.00
	fun version_control
		total: 30
		covered: 30
		% coverage: 100.00
>>> % Module coverage: 70.80
+-------------------------+
| % Move Coverage: 84.92  |
+-------------------------+

Coverage report for module ./move/squid/

+-------------------------+
| Move Coverage Summary   |
+-------------------------+
Module 00000000000000000000000000000000000000000000000000000000000000a6::coin_bag
	fun balance
		total: 20
		covered: 20
		% coverage: 100.00
	fun balance_amount
		total: 20
		covered: 20
		% coverage: 100.00
	fun balance_key
		total: 11
		covered: 11
		% coverage: 100.00
	fun destroy
		total: 4
		covered: 4
		% coverage: 100.00
	fun estimate
		total: 19
		covered: 19
		% coverage: 100.00
	fun estimate_amount
		total: 20
		covered: 20
		% coverage: 100.00
	fun estimate_key
		total: 11
		covered: 11
		% coverage: 100.00
	fun exact_balance
		total: 32
		covered: 24
		% coverage: 75.00
	fun new
		total: 4
		covered: 4
		% coverage: 100.00
	fun store_balance
		total: 21
		covered: 21
		% coverage: 100.00
	fun store_estimate
		total: 25
		covered: 25
		% coverage: 100.00
>>> % Module coverage: 95.72
Module 00000000000000000000000000000000000000000000000000000000000000a6::swap_type
	fun deepbook_v3
		total: 2
		covered: 2
		% coverage: 100.00
	fun its_transfer
		total: 2
		covered: 0
		% coverage: 0.00
	fun peel
		total: 30
		covered: 12
		% coverage: 40.00
	fun sui_transfer
		total: 2
		covered: 0
		% coverage: 0.00
>>> % Module coverage: 38.89
Module 00000000000000000000000000000000000000000000000000000000000000a6::swap_info
	fun coin_bag
		total: 3
		covered: 3
		% coverage: 100.00
	fun data_estimating
		total: 75
		covered: 75
		% coverage: 100.00
	fun data_swapping
		total: 81
		covered: 81
		% coverage: 100.00
	fun destroy
		total: 8
		covered: 8
		% coverage: 100.00
	fun finalize
		total: 23
		covered: 23
		% coverage: 100.00
	fun new
		total: 18
		covered: 18
		% coverage: 100.00
	fun skip_swap
		total: 47
		covered: 47
		% coverage: 100.00
>>> % Module coverage: 100.00
Module 00000000000000000000000000000000000000000000000000000000000000a6::squid_v0
	fun allow_function
		total: 6
		covered: 6
		% coverage: 100.00
	fun channel
		total: 3
		covered: 3
		% coverage: 100.00
	fun coin_bag_mut
		total: 3
		covered: 3
		% coverage: 100.00
	fun disallow_function
		total: 6
		covered: 6
		% coverage: 100.00
	fun give_deep
		total: 6
		covered: 0
		% coverage: 0.00
	fun new
		total: 7
		covered: 7
		% coverage: 100.00
	fun start_swap
		total: 27
		covered: 27
		% coverage: 100.00
	fun version_control
		total: 3
		covered: 3
		% coverage: 100.00
	fun withdraw
		total: 11
		covered: 11
		% coverage: 100.00
>>> % Module coverage: 91.67
Module 00000000000000000000000000000000000000000000000000000000000000a6::owner_cap
	fun create
		total: 4
		covered: 4
		% coverage: 100.00
>>> % Module coverage: 100.00
Module 00000000000000000000000000000000000000000000000000000000000000a6::squid
	fun allow_function
		total: 16
		covered: 16
		% coverage: 100.00
	fun disallow_function
		total: 16
		covered: 16
		% coverage: 100.00
	fun finalize
		total: 3
		covered: 0
		% coverage: 0.00
	fun give_deep
		total: 15
		covered: 0
		% coverage: 0.00
	fun init
		total: 17
		covered: 17
		% coverage: 100.00
	fun inner
		total: 3
		covered: 3
		% coverage: 100.00
	fun inner_mut
		total: 3
		covered: 3
		% coverage: 100.00
	fun new_version_control
		total: 30
		covered: 30
		% coverage: 100.00
	fun start_swap
		total: 19
		covered: 19
		% coverage: 100.00
	fun version
		total: 2
		covered: 2
		% coverage: 100.00
	fun withdraw
		total: 16
		covered: 16
		% coverage: 100.00
>>> % Module coverage: 87.14
Module 00000000000000000000000000000000000000000000000000000000000000a6::deepbook_v3
	fun estimate
		total: 200
		covered: 105
		% coverage: 52.50
	fun estimate_move_call
		total: 36
		covered: 0
		% coverage: 0.00
	fun mul_scaled
		total: 13
		covered: 13
		% coverage: 100.00
	fun peel_swap_data
		total: 20
		covered: 20
		% coverage: 100.00
	fun swap
		total: 308
		covered: 154
		% coverage: 50.00
	fun swap_move_call
		total: 37
		covered: 0
		% coverage: 0.00
>>> % Module coverage: 47.56
Module 00000000000000000000000000000000000000000000000000000000000000a6::transfers
	fun its_estimate
		total: 61
		covered: 0
		% coverage: 0.00
	fun its_estimate_move_call
		total: 16
		covered: 0
		% coverage: 0.00
	fun its_transfer
		total: 179
		covered: 0
		% coverage: 0.00
	fun its_transfer_move_call
		total: 20
		covered: 0
		% coverage: 0.00
	fun new_its_transfer_swap_data
		total: 19
		covered: 0
		% coverage: 0.00
	fun new_sui_transfer_swap_data
		total: 11
		covered: 0
		% coverage: 0.00
	fun sui_estimate
		total: 61
		covered: 0
		% coverage: 0.00
	fun sui_estimate_move_call
		total: 16
		covered: 0
		% coverage: 0.00
	fun sui_transfer
		total: 87
		covered: 0
		% coverage: 0.00
	fun sui_transfer_move_call
		total: 16
		covered: 0
		% coverage: 0.00
>>> % Module coverage: 0.00
Module 00000000000000000000000000000000000000000000000000000000000000a6::discovery
	fun finalize
		total: 11
		covered: 0
		% coverage: 0.00
	fun register_transaction
		total: 70
		covered: 0
		% coverage: 0.00
	fun start_swap
		total: 15
		covered: 0
		% coverage: 0.00
	fun transaction
		total: 206
		covered: 0
		% coverage: 0.00
>>> % Module coverage: 0.00
+-------------------------+
| % Move Coverage: 44.47  |
+-------------------------+

Coverage report for module ./move/utils/

+-------------------------+
| Move Coverage Summary   |
+-------------------------+
Module 00000000000000000000000000000000000000000000000000000000000000a7::utils
>>> % Module coverage: NaN
+-------------------------+
| % Move Coverage: NaN  |
+-------------------------+

Coverage report for module ./move/version_control/

+-------------------------+
| Move Coverage Summary   |
+-------------------------+
Module 00000000000000000000000000000000000000000000000000000000000000b0::version_control
	fun allow_function
		total: 20
		covered: 20
		% coverage: 100.00
	fun allowed_functions
		total: 3
		covered: 3
		% coverage: 100.00
	fun check
		total: 11
		covered: 11
		% coverage: 100.00
	fun disallow_function
		total: 19
		covered: 19
		% coverage: 100.00
	fun latest_version
		total: 6
		covered: 6
		% coverage: 100.00
	fun new
		total: 31
		covered: 31
		% coverage: 100.00
	fun push_back
		total: 6
		covered: 6
		% coverage: 100.00
>>> % Module coverage: 100.00
+-------------------------+
| % Move Coverage: 100.00  |
+-------------------------+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants