(t *testing.T)
| 123 | } |
| 124 | |
| 125 | func 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 | |
| 140 | func TestValidateCommandBadVersion(t *testing.T) { |
| 141 | c := &ValidateCommand{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…