mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
doc: params/config.libevm_test.go comments and improved readability
This commit is contained in:
parent
de201479a2
commit
8b42942216
1 changed files with 7 additions and 4 deletions
|
|
@ -10,6 +10,9 @@ import (
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// testOnlyClearRegisteredExtras SHOULD be called before every call to
|
||||||
|
// [RegisterExtras] and then defer-called afterwards. This is a workaround for
|
||||||
|
// the single-call limitation on [RegisterExtras].
|
||||||
func testOnlyClearRegisteredExtras() {
|
func testOnlyClearRegisteredExtras() {
|
||||||
registeredExtras = nil
|
registeredExtras = nil
|
||||||
}
|
}
|
||||||
|
|
@ -18,10 +21,10 @@ type rawJSON struct {
|
||||||
json.RawMessage
|
json.RawMessage
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var _ interface {
|
||||||
_ json.Unmarshaler = (*rawJSON)(nil)
|
json.Marshaler
|
||||||
_ json.Marshaler = (*rawJSON)(nil)
|
json.Unmarshaler
|
||||||
)
|
} = (*rawJSON)(nil)
|
||||||
|
|
||||||
func TestRegisterExtras(t *testing.T) {
|
func TestRegisterExtras(t *testing.T) {
|
||||||
type (
|
type (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue