mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
19 lines
598 B
Go
19 lines
598 B
Go
package server
|
|
|
|
import (
|
|
"github.com/grafana/grafana/pkg/services/grpcserver"
|
|
"github.com/grafana/grafana/pkg/services/notifications"
|
|
"github.com/grafana/grafana/pkg/services/sqlstore"
|
|
)
|
|
|
|
func ProvideTestEnv(server *Server, store *sqlstore.SQLStore, ns *notifications.NotificationServiceMock, grpcServer grpcserver.Provider) (*TestEnv, error) {
|
|
return &TestEnv{server, store, ns, grpcServer}, nil
|
|
}
|
|
|
|
type TestEnv struct {
|
|
Server *Server
|
|
SQLStore *sqlstore.SQLStore
|
|
NotificationService *notifications.NotificationServiceMock
|
|
GRPCServer grpcserver.Provider
|
|
}
|