github.com/segakazzz/buffalo@v0.16.22-0.20210119082501-1f52048d3feb/genny/info/info_test.go (about)

     1  package info
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/gobuffalo/genny/v2/gentest"
     7  	"github.com/stretchr/testify/require"
     8  )
     9  
    10  func Test_New(t *testing.T) {
    11  	r := require.New(t)
    12  
    13  	g, err := New(&Options{})
    14  	r.NoError(err)
    15  
    16  	run := gentest.NewRunner()
    17  	run.With(g)
    18  
    19  	r.NoError(run.Run())
    20  
    21  	res := run.Results()
    22  
    23  	r.Len(res.Commands, 0)
    24  	r.Len(res.Files, 0)
    25  }