Official Go implementation of the Ethereum protocol
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Eng Zer Jun
8d066f1f42
all: use T.TempDir to create temporary test directories ( #24633 )
...
This commit replaces ioutil.TempDir with t.TempDir in tests. The
directory created by t.TempDir is automatically removed when the test
and all its subtests complete.
Prior to this commit, temporary directory created using ioutil.TempDir
had to be removed manually by calling os.RemoveAll, which is omitted in
some tests. The error handling boilerplate e.g.
defer func() {
if err := os.RemoveAll(dir); err != nil {
t.Fatal(err)
}
}
is also tedious, but t.TempDir handles this for us nicely.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
3 years ago
..
committer.go
trie, les, tests, core: implement trie tracer ( #24403 )
3 years ago
database.go
rlp, trie: faster trie node encoding ( #24126 )
3 years ago
database_test.go
…
encoding.go
trie: use stacktrie for Derivesha operation ( #21407 )
4 years ago
encoding_test.go
trie: use stacktrie for Derivesha operation ( #21407 )
4 years ago
errors.go
…
hasher.go
rlp, trie: faster trie node encoding ( #24126 )
3 years ago
iterator.go
trie: fix two issues in trie iterator ( #24539 )
3 years ago
iterator_test.go
trie, les, tests, core: implement trie tracer ( #24403 )
3 years ago
node.go
rlp, trie: faster trie node encoding ( #24126 )
3 years ago
node_enc.go
rlp, trie: faster trie node encoding ( #24126 )
3 years ago
node_test.go
add node.go unit test file node_test.go ( #20028 )
5 years ago
proof.go
trie, les, tests, core: implement trie tracer ( #24403 )
3 years ago
proof_test.go
trie, les, tests, core: implement trie tracer ( #24403 )
3 years ago
secure_trie.go
trie, les, tests, core: implement trie tracer ( #24403 )
3 years ago
secure_trie_test.go
trie, les, tests, core: implement trie tracer ( #24403 )
3 years ago
stacktrie.go
rlp, trie: faster trie node encoding ( #24126 )
3 years ago
stacktrie_test.go
trie: more tests for stacktrie ( #23936 )
3 years ago
sync.go
Merge pull request #24117 from holiman/db_has
3 years ago
sync_test.go
core, eth, les, trie: remove the sync bloom, used by fast sync
3 years ago
trie.go
trie, les, tests, core: implement trie tracer ( #24403 )
3 years ago
trie_test.go
all: use T.TempDir to create temporary test directories ( #24633 )
3 years ago
util_test.go
trie, les, tests, core: implement trie tracer ( #24403 )
3 years ago
utils.go
trie, les, tests, core: implement trie tracer ( #24403 )
3 years ago