github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/server/mocks.go (about)

     1  package server
     2  
     3  import (
     4  	"net/http"
     5  
     6  	"github.com/gorilla/mux"
     7  )
     8  
     9  type mockNotifier struct{}
    10  
    11  func (mockNotifier) NotificationText() string { return "" }
    12  
    13  type mockAdhocServer struct{}
    14  
    15  func (mockAdhocServer) AddRoutes(r *mux.Router) http.HandlerFunc {
    16  	return r.ServeHTTP
    17  }