MCPcopy Create free account
hub / github.com/devfile/api / checkError

Function checkError

pkg/attributes/attributes_test.go:541–547  ·  view source on GitHub ↗
(t *testing.T, err error, expectedError string)

Source from the content-addressed store, hash-verified

539}
540
541func checkError(t *testing.T, err error, expectedError string) {
542 if expectedError != "" {
543 assert.EqualError(t, err, expectedError)
544 } else {
545 assert.NoError(t, err)
546 }
547}
548
549func TestDecodeAttribute(t *testing.T) {
550 for _, test := range decodeAttributeTestCases {

Callers 2

TestDecodeAttributeFunction · 0.85
TestDecodeAttributesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected