fixture

package
v0.0.0-...-20f649f Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthJWKString = "" /* 372-byte string literal not displayed */

	InstitutionInviteLinkNP = &entity.InstitutionInviteLink{
		ID:   1,
		Code: "abcdef",
		Role: institution.RoleMember,
		Edges: entity.InstitutionInviteLinkEdges{
			Institution: InstitutionNP,
		},
	}

	Institutions = []*entity.Institution{InstitutionNP, InstitutionSP}

	InstitutionNP = &entity.Institution{
		ID:          1,
		Name:        "Ngee Ann Polytechnic",
		ShortName:   "NP",
		Description: "Ngee Ann Polytechnic",
	}
	InstitutionSP = &entity.Institution{
		ID:          1,
		Name:        "Singapore Polytechnic",
		ShortName:   "SP",
		Description: "Singapore Polytechnic",
	}

	UserJohnPassword = "example"
	UserJohn         = &entity.User{
		ID:        1,
		FirstName: "John",
		LastName:  "The Ripper",
		Email:     "john@theripper.com",
		Password: (func() (enc hash.Encoded) {
			_ = json.Unmarshal([]byte(encodedPasswordString), &enc)
			return
		})(),
		Points:                 1,
		PointsAwardedCount:     1,
		PointsAwardedResetTime: time.Now(),
		GodMode:                false,
		Role:                   institution.RoleMember,
		Edges: entity.UserEdges{
			Institution: InstitutionNP,
		},
	}
)
View Source
var (
	RepoInternalErr = errors.New("repo internal err")
	RepoNotFoundErr = new(ent.NotFoundError)
	RepoConflictErr = new(ent.ConstraintError)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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