test

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserIDs         = []string{"ea960e6c-f613-4bed-8852-ab012603915b", "8b21d0aa-39a4-4c09-86d2-d29dff8d261f"}
	OrganizationIDs = []string{"organizationTest"}
	BoardIDs        = []string{"f7a6a858-ab65-4524-9632-b64a21aa3c79", "eef3dd14-929f-4b85-b601-7cc4a484fa97"}
)

Functions

func NewTestClient

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

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