tests

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package tests implements event tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Suite

type Suite struct {
	suite.Suite
	// contains filtered or unexported fields
}

Suite is our testsuite.

func New

func New(logger log.Logger, handler event.Handler) *Suite

New creates a new testsuite.

func (*Suite) BenchmarkRequest

func (s *Suite) BenchmarkRequest(b *testing.B)

BenchmarkRequest runs a benchmark on requests.

func (*Suite) SetupSuite

func (s *Suite) SetupSuite()

SetupSuite creates the handler.

func (*Suite) TearDownSuite

func (s *Suite) TearDownSuite()

TearDownSuite stops the handler.

func (*Suite) TestAuthorizedRequest

func (s *Suite) TestAuthorizedRequest()

TestAuthorizedRequest tests an authorized request.

func (*Suite) TestBadRequest

func (s *Suite) TestBadRequest()

TestBadRequest tests a bad request.

func (*Suite) TestFailingAuthorization

func (s *Suite) TestFailingAuthorization()

TestFailingAuthorization tests an authorization call that must fail.

func (*Suite) TestRequest

func (s *Suite) TestRequest()

TestRequest tests a request.

Directories

Path Synopsis
pb
Package pb ...
Package pb ...

Jump to

Keyboard shortcuts

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