go-ethereum/core/rawdb
Arran Schlosberg e4220c7ed4
refactor: rawdb tests (#221)
## 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).
2025-09-03 16:34:48 +01:00
..
testdata core/rawdb: avoid unnecessary receipt processing for log filtering (#23147) 2021-09-28 12:54:49 +02:00
accessors_chain.go refactor!(core/types): Block method WithBody(Body) signature (#110) 2025-02-11 14:29:34 +00:00
accessors_chain_test.go refactor!(core/types): Block method WithBody(Body) signature (#110) 2025-02-11 14:29:34 +00:00
accessors_indexes.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
accessors_indexes_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
accessors_metadata.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
accessors_snapshot.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
accessors_state.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
accessors_sync.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
accessors_trie.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
ancient_scheme.go core, cmd, trie: fix the condition of pathdb initialization (#28718) 2023-12-21 20:28:32 +01:00
ancient_utils.go feat(rawdb): skip freezers (#220) 2025-09-03 14:50:44 +01:00
chain_freezer.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
chain_iterator.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
chain_iterator_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
database.go feat(rawdb): skip freezers (#220) 2025-09-03 14:50:44 +01:00
database.libevm.go feat(rawdb): skip freezers (#220) 2025-09-03 14:50:44 +01:00
database.libevm_test.go refactor: rawdb tests (#221) 2025-09-03 16:34:48 +01:00
database_test.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
examples.libevm_test.go refactor: rawdb tests (#221) 2025-09-03 16:34:48 +01:00
freezer.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
freezer_batch.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
freezer_meta.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
freezer_meta_test.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
freezer_resettable.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
freezer_resettable_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
freezer_table.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
freezer_table_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
freezer_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
freezer_utils.go core/rawdb: fsync the index file after each freezer write (#28483) 2023-11-10 12:56:39 +02:00
freezer_utils_test.go all: more linters (#24783) 2022-06-13 16:24:45 +02:00
key_length_iterator.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
key_length_iterator_test.go core/rawdb: add specified key length iterator (#24535) 2022-03-15 10:28:26 +02:00
schema.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
table.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
table_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00