Skip to content

Commit

Permalink
chore: fixup
Browse files Browse the repository at this point in the history
Signed-off-by: moul <[email protected]>
  • Loading branch information
moul committed Jan 24, 2025
1 parent 315ecd7 commit 2a94289
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 25 deletions.
6 changes: 2 additions & 4 deletions gnovm/cmd/gno/mod.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ func (c *modDownloadCfg) RegisterFlags(fs *flag.FlagSet) {
)
}

type modGraphCfg struct {
}
type modGraphCfg struct{}

func (c *modGraphCfg) RegisterFlags(fs *flag.FlagSet) {
// /out std
Expand All @@ -178,10 +177,9 @@ func execModGraph(cfg *modGraphCfg, args []string, io commands.IO) error {
return flag.ErrHelp
}


stdout := io.Out()

pkgs,err := gnomod.ListPkgs(args[0])
pkgs, err := gnomod.ListPkgs(args[0])
if err != nil {
return err
}
Expand Down
22 changes: 11 additions & 11 deletions gnovm/cmd/gno/mod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,32 +215,32 @@ valid.gno

// test `gno mod graph`
{
args: []string{"mod", "graph"},
testDir: "../../tests/integ/minimalist_gnomod",
args: []string{"mod", "graph"},
testDir: "../../tests/integ/minimalist_gnomod",
simulateExternalRepo: true,
stdoutShouldBe: ``,
stdoutShouldBe: ``,
},
{
args: []string{"mod", "graph"},
testDir: "../../tests/integ/valid1",
args: []string{"mod", "graph"},
testDir: "../../tests/integ/valid1",
simulateExternalRepo: true,
stdoutShouldBe: ``,
stdoutShouldBe: ``,
},
{
args: []string{"mod", "graph"},
testDir: "../../tests/integ/valid2",
args: []string{"mod", "graph"},
testDir: "../../tests/integ/valid2",
simulateExternalRepo: true,
stdoutShouldBe: `gno.land/p/integ/valid gno.land/p/demo/avl
`,
},
{
args: []string{"mod", "graph"},
testDir: "../../tests/integ/require_remote_module",
args: []string{"mod", "graph"},
testDir: "../../tests/integ/require_remote_module",
simulateExternalRepo: true,
stdoutShouldBe: `gno.land/tests/importavl gno.land/p/demo/avl
`,
},
}
}

testMainCaseRun(t, tc)
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 4 additions & 8 deletions tm2/pkg/overflow/overflow_impl.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2a94289

Please sign in to comment.