Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
* add changelog
* add uncovered test case
* correct import sequence
  • Loading branch information
torao committed Dec 1, 2022
1 parent a14de42 commit 10cd59c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (x/foundation) [\#545](https://github.com/line/lbm-sdk/pull/545) fix genesis and support abstain
* (x/auth) [\#563](https://github.com/line/lbm-sdk/pull/563) fix unmarshal bug of `BaseAccountJSON`
* (client) [\#565](https://github.com/line/lbm-sdk/pull/565) fix the data race problem in `TestQueryABCIHeight`
* (client) [\#817](https://github.com/line/lbm-sdk/pull/817) remove support for composite (BLS) type

### Breaking Changes
* (proto) [\#564](https://github.com/line/lbm-sdk/pull/564) change gRPC path to original cosmos path
Expand Down
12 changes: 12 additions & 0 deletions client/flags/flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package flags_test
import (
"testing"

"github.com/spf13/cobra"
"github.com/stretchr/testify/require"

"github.com/line/lbm-sdk/client/flags"
Expand Down Expand Up @@ -36,3 +37,14 @@ func TestParseGasSetting(t *testing.T) {
})
}
}

func TestAddFlagsToCmd(t *testing.T) {
cmd := cobra.Command{}
flags.AddQueryFlagsToCmd(&cmd)

cmd = cobra.Command{}
flags.AddTxFlagsToCmd(&cmd)

cmd = cobra.Command{}
flags.AddPaginationFlagsToCmd(&cmd, "")
}
7 changes: 4 additions & 3 deletions x/genutil/client/cli/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import (
"bufio"
"encoding/json"
"fmt"
"os"
"path/filepath"
"strings"

"github.com/cosmos/go-bip39"
cfg "github.com/line/ostracon/config"
"github.com/line/ostracon/libs/cli"
Expand All @@ -13,9 +17,6 @@ import (
"github.com/line/ostracon/types"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"os"
"path/filepath"
"strings"

"github.com/line/lbm-sdk/client"
"github.com/line/lbm-sdk/client/flags"
Expand Down

0 comments on commit 10cd59c

Please sign in to comment.