MCPcopy
hub / github.com/hashicorp/packer / fn

Method fn

command/init_test.go:41–51  ·  view source on GitHub ↗
(t *testing.T, tc testCaseInit)

Source from the content-addressed store, hash-verified

39}
40
41func (tb testBuild) fn(t *testing.T, tc testCaseInit) {
42 bc := BuildCommand{
43 Meta: tc.Meta,
44 }
45
46 args := []string{tc.packerUserFolder}
47 want := tb.want
48 if got := bc.Run(args); got != want {
49 t.Errorf("BuildCommand.Run() = %v, want %v", got, want)
50 }
51}
52
53func TestInitCommand_Run(t *testing.T) {
54 // These tests will try to optimise for doing the least amount of github api

Callers

nothing calls this directly

Calls 2

RunMethod · 0.95
ErrorfMethod · 0.45

Tested by

no test coverage detected