mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22: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"
|
||||
)
|
||||
|
||||
// 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() {
|
||||
registeredExtras = nil
|
||||
}
|
||||
|
|
@ -18,10 +21,10 @@ type rawJSON struct {
|
|||
json.RawMessage
|
||||
}
|
||||
|
||||
var (
|
||||
_ json.Unmarshaler = (*rawJSON)(nil)
|
||||
_ json.Marshaler = (*rawJSON)(nil)
|
||||
)
|
||||
var _ interface {
|
||||
json.Marshaler
|
||||
json.Unmarshaler
|
||||
} = (*rawJSON)(nil)
|
||||
|
||||
func TestRegisterExtras(t *testing.T) {
|
||||
type (
|
||||
|
|
|
|||
Loading…
Reference in a new issue