Skip to main content

Module btest

Module btest 

Source

Modulesยง

post_block
pre_block
Pre block state transition

Structsยง

DebugInfo ๐Ÿ”’
Debug information captured during test execution

Enumsยง

Error
TestExecutionError

Functionsยง

execute_blockchain_test ๐Ÿ”’
Execute a single blockchain test case
fork_to_spec_id ๐Ÿ”’
Convert ForkSpec to SpecId
print_error_with_state ๐Ÿ”’
Print comprehensive error information including environment and state comparison
print_json ๐Ÿ”’
Panics if the value cannot be serialized to JSON.
run_btests
Run blockchain tests from the given files with default settings.
run_test_file ๐Ÿ”’
Run tests from a single file
run_tests ๐Ÿ”’
Run all blockchain tests from the given files
skip_test ๐Ÿ”’
Check if a test should be skipped based on its filename
validate_post_state ๐Ÿ”’
Validate post state against expected values