func TestServingCert(t *testing.T) { … } func createListener(network, addr string) (net.Listener, int, error) { … } type nullCAContent … var _ … // Name is just an identifier func (c *nullCAContent) Name() string { … } func (c *nullCAContent) AddListener(Listener) { … } // CurrentCABundleContent provides ca bundle byte content func (c *nullCAContent) CurrentCABundleContent() (cabundle []byte) { … } func (c *nullCAContent) VerifyOptions() (x509.VerifyOptions, bool) { … }