github.com/JarrahG/buffalocli@v0.0.0-20230801092127-b85bfd5d395a/internal/genny/build/build_deps_test.go (about) 1 package build 2 3 import ( 4 "testing" 5 6 "github.com/gobuffalo/genny/v2/gentest" 7 "github.com/gobuffalo/meta" 8 "github.com/stretchr/testify/require" 9 ) 10 11 func Test_buildDeps(t *testing.T) { 12 r := require.New(t) 13 14 opts := &Options{ 15 Tags: meta.BuildTags{"foo"}, 16 } 17 18 run := gentest.NewRunner() 19 r.NoError(run.WithNew(buildDeps(opts))) 20 r.NoError(run.Run()) 21 22 res := run.Results() 23 r.Len(res.Commands, 0) 24 }