From c665a958920bfe4a87184da1780a55b30a34931b Mon Sep 17 00:00:00 2001 From: Alex | Interchain Labs Date: Mon, 24 Feb 2025 08:46:12 -0500 Subject: [PATCH] chore: comment out examples (#23738) --- crypto/hd/hdpath_test.go | 3 ++- crypto/ledger/encode_test.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crypto/hd/hdpath_test.go b/crypto/hd/hdpath_test.go index cce81df86f..7b9816fd0b 100644 --- a/crypto/hd/hdpath_test.go +++ b/crypto/hd/hdpath_test.go @@ -1,7 +1,6 @@ package hd_test import ( - "encoding/hex" "fmt" "testing" @@ -185,6 +184,7 @@ func TestDeriveHDPathRange(t *testing.T) { } } +/* func ExampleStringifyPathParams() { //nolint:govet // ignore naming convention path := hd.NewParams(44, 0, 0, false, 0) fmt.Println(path.String()) @@ -280,6 +280,7 @@ func ExampleSomeBIP32TestVecs() { //nolint:govet // ignore naming convention // // c4c11d8c03625515905d7e89d25dfc66126fbc629ecca6db489a1a72fc4bda78 } +*/ // Ensuring that we don't crash if values have trailing slashes // See issue https://github.com/cosmos/cosmos-sdk/issues/8557. diff --git a/crypto/ledger/encode_test.go b/crypto/ledger/encode_test.go index b5b06d04f3..6f428f8798 100644 --- a/crypto/ledger/encode_test.go +++ b/crypto/ledger/encode_test.go @@ -1,7 +1,6 @@ package ledger import ( - "os" "testing" "github.com/stretchr/testify/require" @@ -24,6 +23,7 @@ func checkAminoJSON(t *testing.T, src, dst interface{}, isNil bool) { require.Nil(t, err, "%+v", err) } +/* func ExamplePrintRegisteredTypes() { //nolint:govet // ignore for examples _ = cdc.PrintTypes(os.Stdout) // | Type | Name | Prefix | Length | Notes | @@ -37,6 +37,7 @@ func ExamplePrintRegisteredTypes() { //nolint:govet // ignore for examples // | PrivKey | tendermint/PrivKeySr25519 | 0x2F82D78B | variable | | // | PrivKey | tendermint/PrivKeySecp256k1 | 0xE1B0F79B | variable | | } +*/ func TestNilEncodings(t *testing.T) { // Check nil Signature.