suite

package
v0.0.0-...-ea2d26f Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvTestCaseDir = "TESTCASES_DIR"
	InputExt       = ".in.ics"
	OutputExt      = ".out.ics"
	IcsExt         = ".ics"
)

Variables

This section is empty.

Functions

func CompareContentsByTestName

func CompareContentsByTestName(ctx context.Context, t *testing.T, st *Suite)

func GetCalendar

func GetCalendar(ctx context.Context, t *testing.T, st *Suite) string

func GetCalendarObjectFromFile

func GetCalendarObjectFromFile(t *testing.T, ext string) (*ical.Calendar, string)

Types

type Suite

type Suite struct {
	*testing.T
	Cfg        *config.Config
	Client     *caldav.Client
	TestFolder map[string]string
}

func New

func New(t *testing.T, withAuth bool) (context.Context, *Suite)

func (*Suite) CreateTestCalendar

func (s *Suite) CreateTestCalendar(ctx context.Context, calendarHomeSet string)

Jump to

Keyboard shortcuts

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