MCPcopy Create free account
hub / github.com/conforma/cli / Test_ValidateInputCmd_NoFileProvided

Function Test_ValidateInputCmd_NoFileProvided

cmd/validate/input_test.go:271–280  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

269}
270
271func Test_ValidateInputCmd_NoFileProvided(t *testing.T) {
272 cmd, _ := setUpValidateInputCmd(nil, afero.NewMemMapFs())
273 cmd.SetArgs([]string{
274 "input",
275 "--policy", `{"publicKey":"testkey"}`,
276 })
277 err := cmd.Execute()
278 assert.Error(t, err)
279 assert.Contains(t, err.Error(), "required flag(s) \"file\" not set")
280}
281
282func Test_ValidateInputCmd_PolicyParsingError(t *testing.T) {
283 fs := afero.NewMemMapFs()

Callers

nothing calls this directly

Calls 2

setUpValidateInputCmdFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected