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

Function TestSign

api/client/client_test.go:82–88  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

80}
81
82func TestSign(t *testing.T) {
83 s := NewServer(".X")
84 sign, err := s.Sign([]byte{5, 5, 5, 5})
85 if sign != nil || err == nil {
86 t.Fatalf("expected error with sign function")
87 }
88}
89
90func TestNewMutualTLSServer(t *testing.T) {
91 cert, _ := helpers.LoadClientCertificate("../../helpers/testdata/ca.pem", "../../helpers/testdata/ca_key.pem")

Callers

nothing calls this directly

Calls 2

NewServerFunction · 0.85
SignMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…