test

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserIDs         = []string{"ea960e6c-f613-4bed-8852-ab012603915b", "8b21d0aa-39a4-4c09-86d2-d29dff8d261f"}
	Roles           = []string{"admin", "db_viewer"}
	RoleUIDs        = [][]int{{1}, {2, 3, 4}}
	ManagementRoles = []string{"admin", "db_viewer", "cluster_viewer", "admin"}
	RoleNames       = []string{"Admin", "Member", "Super Member", "Full User"}
)

Functions

func GetUniqueTime

func GetUniqueTime() time.Time

func NewTestClient

func NewTestClient(response *http.Response, err error) *client.RedisClient

Helper function to create a test client with custom transport.

func ReadFile

func ReadFile(fileName string) string

Types

type MockRoundTripper

type MockRoundTripper struct {
	Response *http.Response
	Err      error
	// contains filtered or unexported fields
}

func (*MockRoundTripper) RoundTrip

func (m *MockRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

func (*MockRoundTripper) SetRoundTrip

func (m *MockRoundTripper) SetRoundTrip(roundTrip func(*http.Request) (*http.Response, error))

type TestRoundTripper

type TestRoundTripper struct {
	// contains filtered or unexported fields
}

Custom RoundTripper for testing.

func (*TestRoundTripper) RoundTrip

func (t *TestRoundTripper) RoundTrip(*http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL