Files
Matheus Macabu b110754c9a Hackaton: Add more unit tests, take 2 (#101473)
* 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
2025-03-03 13:12:13 +01:00

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)
}