test

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Gilbert = &User{Name: "Gilbert Bougainvillea", Email: "", Password: "", Entropy: 0}
View Source
var Violet = &User{Name: "Violet Evergarden", Email: "violet@ch-postal.com", Password: "password", Entropy: 18_446_744_073_709_551_615}

Functions

func BytesCompare added in v0.0.2

func BytesCompare(t *testing.T, expected []byte, actual []byte)

func GetS3Bucket added in v0.0.2

func GetS3Bucket() *lino_s3.LinoS3Bucket

func GetS3Object

func GetS3Object(subPath string, key string) *lino_s3.LinoS3Object

func GetS3Session

func GetS3Session() *session.Session

func RandomInRange added in v0.0.2

func RandomInRange(start int32, end int32) int32

func RandomTestBytes added in v0.0.2

func RandomTestBytes() []byte

Types

type Book

type Book struct {
	Title   string `json:"title" cbor:"1,keyasint,omitempty"`
	Author  string `json:"author" cbor:"2,keyasint,omitempty"`
	Content string `json:"content" cbor:"3,keyasint,omitempty"`
	Size    int64  `json:"size" cbor:"4,keyasint,omitempty"`
}

func GetBook

func GetBook() (*Book, error)

type User

type User struct {
	Name     string `json:"name" cbor:"1,keyasint,omitempty"`
	Email    string `json:"mail" cbor:"2,keyasint,omitempty"`
	Password string `json:"password" cbor:"3,keyasint,omitempty"`
	Entropy  uint64 `json:",omitempty,string" cbor:"4,keyasint,omitempty"`
}

Jump to

Keyboard shortcuts

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