Documentation
¶
Overview ¶
Package testutils provides helpers for testing github-copilot-svcs.
Index ¶
- func CleanupEnv()
- func CreateTestServer(cfg *internal.Config) *internal.Server
- func InitLogger()
- func LoadFixture(t *testing.T, path string) []byte
- func MockConfig() *internal.Config
- func MockGitHubServer() *httptest.Server
- func SetupInvalidToken()
- func SetupTestDir(t *testing.T) string
- func SetupValidToken()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestServer ¶
CreateTestServer creates a test server with the given config
func LoadFixture ¶
LoadFixture loads a test fixture file
func MockConfig ¶
MockConfig returns a test configuration for use in unit tests.
func MockGitHubServer ¶
MockGitHubServer creates a mock GitHub API server
func SetupInvalidToken ¶
func SetupInvalidToken()
SetupInvalidToken sets up environment for invalid token tests
func SetupTestDir ¶
SetupTestDir creates a temporary directory for tests
func SetupValidToken ¶
func SetupValidToken()
SetupValidToken sets up environment for valid token tests
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.