testhelper

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValidMailNotificationChannel added in v0.12.0

func GetValidMailNotificationChannel() maildto.MailNotificationChannelRequest

func GetValidMattermostNotificationChannel added in v0.12.0

func GetValidMattermostNotificationChannel() mattermostdto.MattermostNotificationChannelRequest

func GetValidTeamsNotificationChannel added in v0.12.0

func GetValidTeamsNotificationChannel() teamsdto.TeamsNotificationChannelRequest

func NewJSONRequest

func NewJSONRequest(method, url string, bodyAsStruct any) (*http.Request, error)

NewJSONRequest wraps http.NewRequest and sets the passed struct as body

func NewTestWebEngine added in v0.12.0

func NewTestWebEngine(registry *errmap.Registry) *gin.Engine

func SetupNotificationChannelTestEnv added in v0.12.0

func SetupNotificationChannelTestEnv(t *testing.T) (notificationrepository.NotificationChannelRepository, *sqlx.DB)

func VerifyResponseWithMetadata

func VerifyResponseWithMetadata[T any](
	t *testing.T,
	wantResponseCode int, wantResponseParsed T,
	gotResponse *httptest.ResponseRecorder,
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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