MCPcopy Create free account
hub / github.com/BryanMwangi/pine / TestNewServer_Logger

Function TestNewServer_Logger

pine_test.go:98–110  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

96}
97
98func TestNewServer_Logger(t *testing.T) {
99 server := New()
100
101 // Check if errorLog is initialized properly
102 if server.errorLog == nil {
103 t.Error("expected errorLog to be initialized")
104 }
105
106 // Check if logger writes to stderr
107 if server.errorLog.Writer() != os.Stderr {
108 t.Error("expected errorLog to write to stderr")
109 }
110}
111
112func TestNewServer_TLSConfig(t *testing.T) {
113 customTLSConfig := Config{

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected