MCPcopy Create free account
hub / github.com/libgit2/git2go / assertHostname

Function assertHostname

remote_test.go:41–48  ·  view source on GitHub ↗
(cert *Certificate, valid bool, hostname string, t *testing.T)

Source from the content-addressed store, hash-verified

39}
40
41func assertHostname(cert *Certificate, valid bool, hostname string, t *testing.T) error {
42 if hostname != "github.com" {
43 t.Fatal("hostname does not match")
44 return errors.New("hostname does not match")
45 }
46
47 return nil
48}
49
50func TestCertificateCheck(t *testing.T) {
51 t.Parallel()

Callers 1

TestCertificateCheckFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…