Skip to content

Conversation

ARR4N
Copy link
Collaborator

@ARR4N ARR4N commented Sep 3, 2025

Why this should be merged

The need for examples to be in package rawdb_test made it difficult to test other code that relied on non-exported rawdb identifiers.

How this works

  1. Move all testable examples from database.libevm_test.go to examples.libevm_test.go without any change.
  2. Change database.libevm_test.go to be in package rawdb and extend the WithSkipFreezers() test.

How this was tested

No change at all to testable examples. The WithSkipFreezers() test now touches both the happy and (specific) error paths to demonstrate exact behaviour (under the old approach it could have just been that there was no error, even without the option).

Base automatically changed from RodrigoVillar/skip-freezer-inspection to main September 3, 2025 13:50
@ARR4N ARR4N force-pushed the arr4n/rawdb-test-refactor branch from c75d74b to d7fe647 Compare September 3, 2025 13:52
@ARR4N ARR4N marked this pull request as ready for review September 3, 2025 14:27
@ARR4N ARR4N requested review from RodrigoVillar and a team September 3, 2025 14:28
@ARR4N ARR4N merged commit e4220c7 into main Sep 3, 2025
17 of 18 checks passed
@ARR4N ARR4N deleted the arr4n/rawdb-test-refactor branch September 3, 2025 15:34
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.

3 participants