Files
grafana/pkg/server/test_env.go
T

17 lines
459 B
Go
Raw Normal View History

package server
2022-01-26 16:42:40 +01:00
import (
"github.com/grafana/grafana/pkg/services/notifications"
"github.com/grafana/grafana/pkg/services/sqlstore"
)
2022-01-26 16:42:40 +01:00
func ProvideTestEnv(server *Server, store *sqlstore.SQLStore, ns *notifications.NotificationServiceMock) (*TestEnv, error) {
return &TestEnv{server, store, ns}, nil
}
type TestEnv struct {
2022-01-26 16:42:40 +01:00
Server *Server
SQLStore *sqlstore.SQLStore
NotificationService *notifications.NotificationServiceMock
}