github.com/gobuffalo/buffalo-cli/v2@v2.0.0-alpha.15.0.20200919213536-a7350c8e6799/cli/cmds/build/build_test.go (about)

     1  package build
     2  
     3  import (
     4  	"path/filepath"
     5  	"testing"
     6  
     7  	"github.com/gobuffalo/here"
     8  )
     9  
    10  type background string
    11  
    12  func (b background) PluginName() string {
    13  	return string(b)
    14  }
    15  
    16  func newRef(t *testing.T, root string) here.Info {
    17  	t.Helper()
    18  
    19  	info := here.Info{
    20  		Dir:        root,
    21  		ImportPath: "github.com/markbates/coke",
    22  		Name:       "coke",
    23  		Root:       root,
    24  		Module: here.Module{
    25  			Path:  "github.com/markbates/coke",
    26  			Main:  true,
    27  			Dir:   root,
    28  			GoMod: filepath.Join(root, "go.mod"),
    29  		},
    30  	}
    31  
    32  	return info
    33  }