MCPcopy Index your code
hub / github.com/cortexlabs/cortex / testConfigError

Function testConfigError

pkg/lib/configreader/reader_test.go:1037–1041  ·  view source on GitHub ↗
(structValidation *StructValidation, configData interface{}, expectedTypeInstance interface{}, t *testing.T)

Source from the content-addressed store, hash-verified

1035}
1036
1037func testConfigError(structValidation *StructValidation, configData interface{}, expectedTypeInstance interface{}, t *testing.T) {
1038 config := reflect.New(reflect.TypeOf(expectedTypeInstance).Elem()).Interface()
1039 errs := Struct(config, configData, structValidation)
1040 require.NotEmpty(t, errs)
1041}

Callers 1

TestDefaultNullFunction · 0.85

Calls 1

StructFunction · 0.85

Tested by

no test coverage detected