Skip to content

Commit

Permalink
Add test for invalid char
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-hov committed Aug 1, 2023
1 parent 4286d3d commit 121be82
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gnovm/pkg/gnomod/gnomod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ func TestCreateGnoModFile(t *testing.T) {
desc: "empty directory (without modPath)",
errShouldContain: "cannot determine package name",
},
{
desc: "invalid modPath 1",
inModPath: " ",
errShouldContain: "malformed import path",
},
{
desc: "invalid modPath 2",
inModPath: "\"",
errShouldContain: "malformed import path",
},
{
desc: "valid package",
in: []struct{ filename, content string }{
Expand Down

0 comments on commit 121be82

Please sign in to comment.