MCPcopy Index your code
hub / github.com/hashicorp/packer / TestValidateCommandOKVersion

Function TestValidateCommandOKVersion

command/validate_test.go:125–138  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

123}
124
125func TestValidateCommandOKVersion(t *testing.T) {
126 c := &ValidateCommand{
127 Meta: TestMetaFile(t),
128 }
129 args := []string{
130 filepath.Join(testFixture("validate"), "template.json"),
131 }
132
133 // This should pass with a valid configuration version
134 c.CoreConfig.Version = "102.0.0"
135 if code := c.Run(args); code != 0 {
136 fatalCommand(t, c.Meta)
137 }
138}
139
140func TestValidateCommandBadVersion(t *testing.T) {
141 c := &ValidateCommand{

Callers

nothing calls this directly

Calls 4

RunMethod · 0.95
TestMetaFileFunction · 0.85
testFixtureFunction · 0.85
fatalCommandFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…