MCPcopy Create free account
hub / github.com/quay/clair / Run

Method Run

config/config_test.go:17–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

15}
16
17func (tc ValidateTestcase) Run(t *testing.T) {
18 ws, err := config.Validate(&tc.Conf)
19 for _, w := range ws {
20 t.Logf("lint: %v", &w)
21 }
22 if tc.Check != nil {
23 tc.Check(t, &tc.Conf, err)
24 } else {
25 if err != nil {
26 t.Errorf("unexpected error: %v", err)
27 }
28 }
29}
30
31// This test looks a little sprawling, but it's structured by the field name
32// into subtests, with the leaf test being the element triggering the failure.

Callers 9

TestLoadConfigFunction · 0.45
exportActionFunction · 0.45
TestValidateFailureFunction · 0.45
TestUpdateRetentionFunction · 0.45
TestDisableUpdatersFunction · 0.45
TestTagsFunction · 0.45
typecheckFunction · 0.45
TestAuthUnmarshalFunction · 0.45
TestEnumMarshalFunction · 0.45

Calls 1

CheckMethod · 0.65

Tested by

no test coverage detected