testutil

package
v0.0.0-...-1b8d80d Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Internship

func Internship(tutor schema.User) schema.Internship

Internship returns an internship for a random student and supervisor

func Person

func Person() schema.Person

Person returns a random person

func ReportHeader

func ReportHeader(k string, deadline time.Time, others ...time.Time) schema.ReportHeader

ReportHeader returns a report

func Student

func Student(major, promotion string) schema.Student

Student returns a random student

func Tutor

func Tutor() schema.User

Tutor returns a random tutor

Types

type FakeInternshipser

type FakeInternshipser struct {
	Ints schema.Internships
}

FakeInternshipser mocks Internshipser

func (*FakeInternshipser) Internships

func (f *FakeInternshipser) Internships() (schema.Internships, error)

Internships returns all the intenrships in FakeInternshipser

Jump to

Keyboard shortcuts

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