MCPcopy
hub / github.com/urfave/cli / TestMultiErrorErrorsCopy

Function TestMultiErrorErrorsCopy

errors_test.go:214–222  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

212}
213
214func TestMultiErrorErrorsCopy(t *testing.T) {
215 errList := []error{
216 errors.New("foo"),
217 errors.New("bar"),
218 errors.New("baz"),
219 }
220 me := newMultiError(errList...)
221 assert.Equal(t, errList, me.Errors())
222}
223
224func TestErrRequiredFlags_Error(t *testing.T) {
225 missingFlags := []string{"flag1", "flag2"}

Callers

nothing calls this directly

Calls 2

newMultiErrorFunction · 0.85
ErrorsMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…