MCPcopy Create free account
hub / github.com/prometheus/common / TestTLSVersionStringer

Function TestTLSVersionStringer

config/tls_config_test.go:137–141  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

135}
136
137func TestTLSVersionStringer(t *testing.T) {
138 if s := (TLSVersion)(tls.VersionTLS13); s.String() != "TLS13" {
139 t.Fatalf("tls.VersionTLS13 string should be TLS13, got %s", s.String())
140 }
141}
142
143func TestTLSVersionMarshalYAML(t *testing.T) {
144 tests := []struct {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected