github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/cmd/gno/bug_test.go (about)

     1  package main
     2  
     3  import "testing"
     4  
     5  func TestBugApp(t *testing.T) {
     6  	tc := []testMainCase{
     7  		{
     8  			args:        []string{"bug -h"},
     9  			errShouldBe: "flag: help requested",
    10  		},
    11  		{
    12  			args:        []string{"bug unknown"},
    13  			errShouldBe: "flag: help requested",
    14  		},
    15  		{
    16  			args:                []string{"bug", "-skip-browser"},
    17  			stdoutShouldContain: "go version go1.",
    18  		},
    19  	}
    20  	testMainCaseRun(t, tc)
    21  }