MCPcopy
hub / github.com/smallstep/cli / TestParseTemplateData_missing

Function TestParseTemplateData_missing

flags/flags_test.go:185–195  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

183}
184
185func TestParseTemplateData_missing(t *testing.T) {
186 tempDir := t.TempDir()
187 app := &cli.App{}
188 set := flag.NewFlagSet(t.Name(), 0)
189 set.String("set-file", filepath.Join(tempDir, "missing"), "")
190
191 _, err := ParseTemplateData(cli.NewContext(app, set, nil))
192 if err == nil {
193 t.Errorf("ParseTemplateData() error = %v, wantErr true", err)
194 }
195}
196
197func TestParseFingerprintFormat(t *testing.T) {
198 type args struct {

Callers

nothing calls this directly

Calls 2

ParseTemplateDataFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…