github.com/diadata-org/diadata@v1.4.593/pkg/dia/scraper/exchange-scrapers/orca/whirlpool/IncreaseLiquidity_test.go (about) 1 // Code generated by https://github.com/gagliardetto/anchor-go. DO NOT EDIT. 2 3 package whirlpool 4 5 import ( 6 "bytes" 7 ag_gofuzz "github.com/gagliardetto/gofuzz" 8 ag_require "github.com/stretchr/testify/require" 9 "strconv" 10 "testing" 11 ) 12 13 func TestEncodeDecode_IncreaseLiquidity(t *testing.T) { 14 fu := ag_gofuzz.New().NilChance(0) 15 for i := 0; i < 1; i++ { 16 t.Run("IncreaseLiquidity"+strconv.Itoa(i), func(t *testing.T) { 17 { 18 params := new(IncreaseLiquidity) 19 fu.Fuzz(params) 20 params.AccountMetaSlice = nil 21 buf := new(bytes.Buffer) 22 err := encodeT(*params, buf) 23 ag_require.NoError(t, err) 24 got := new(IncreaseLiquidity) 25 err = decodeT(got, buf.Bytes()) 26 got.AccountMetaSlice = nil 27 ag_require.NoError(t, err) 28 ag_require.Equal(t, params, got) 29 } 30 }) 31 } 32 }