mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 23:53:10 +08:00

* login/social/socialimpl: add assertions for usage stats, support bundle and oauthinfo methods * accesscontrol/acimpl: add tests for GetRoleByName * anonymous/sortopts: add tests for Sorter * cloudmigration/gmsclient: add basic test cases for all methods * shorturls/shorturlimpl: add more edge test cases * tag/tagimpl: add test to cover duplicate tag kv and nil pairs * updatechecker: add test cases for module
16 lines
393 B
Go
16 lines
393 B
Go
package supportbundlestest
|
|
|
|
import "github.com/grafana/grafana/pkg/services/supportbundles"
|
|
|
|
type FakeBundleService struct {
|
|
Collectors []supportbundles.Collector
|
|
}
|
|
|
|
func NewFakeBundleService() *FakeBundleService {
|
|
return &FakeBundleService{}
|
|
}
|
|
|
|
func (s *FakeBundleService) RegisterSupportItemCollector(collector supportbundles.Collector) {
|
|
s.Collectors = append(s.Collectors, collector)
|
|
}
|