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 23, 2025
1 parent dec8d33 commit a735e79
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions gnovm/cmd/gno/mod.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ type modGraphCfg struct {
func (c *modGraphCfg) RegisterFlags(fs *flag.FlagSet) {
// /out std
// /out remote
// /out _test processing
// ...
}

Expand Down
30 changes: 29 additions & 1 deletion gnovm/cmd/gno/mod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,35 @@ func TestModApp(t *testing.T) {
valid.gno
`,
},
}

// test `gno mod graph`
{
args: []string{"mod", "graph"},
testDir: "../../tests/integ/minimalist_gnomod",
simulateExternalRepo: true,
stdoutShouldBe: ``,
},
{
args: []string{"mod", "graph"},
testDir: "../../tests/integ/valid1",
simulateExternalRepo: true,
stdoutShouldBe: ``,
},
{
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",
simulateExternalRepo: true,
stdoutShouldBe: `gno.land/tests/importavl gno.land/p/demo/avl
`,
},
}

testMainCaseRun(t, tc)
}

0 comments on commit a735e79

Please sign in to comment.