package servlet import ( "testing" ) func TestNewServlet(t *testing.T) { port := ":8080" srv := NewServlet(port) if srv.Port != port { t.Errorf("Expected port %s, got %s", port, srv.Port) } if srv.Routes != nil { t.Error("Expected Routes to be nil") } if srv.ErrorRoutes == nil { t.Error("Expected ErrorRoutes to be initialized") } }