MCPcopy Create free account
hub / github.com/cloudflare/cfssl / TestValidations

Function TestValidations

initca/initca_test.go:268–279  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

266}
267
268func TestValidations(t *testing.T) {
269 for i, tv := range testValidations {
270 err := validator(tv.r)
271 if tv.v && err != nil {
272 t.Fatalf("%v", err)
273 }
274
275 if !tv.v && err == nil {
276 t.Fatalf("%d: expected error, but no error was reported", i)
277 }
278 }
279}
280
281func TestRenewRSA(t *testing.T) {
282 certPEM, err := RenewFromPEM(testRSACAFile, testRSACAKeyFile)

Callers

nothing calls this directly

Calls 1

validatorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…