testutil package - github.com/ulfschneider/qrvc/internal/test/util - Go Packages

testutil

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExpectedVCF = NormalizeNewLines(`BEGIN:VCARD
VERSION:3.0
ADR:Post office box;Extended street address;Street address;City;;Postal code;Country
EMAIL:Email address
GENDER:N
N:Family name;Given name;Additional name;Honorific prefix;Honorific suffix
ORG:Organization or company;Department
TEL;TYPE=cell:Cell phone
TEL;TYPE=work:Work phone
TEL;TYPE=home:Home phone
TITLE:Job title
URL:Web address
END:VCARD
`)

Functions

func CreateCard

func CreateCard() vcard.Card

func CreateQRCode

func CreateQRCode(card vcard.Card, settings config.QRCodeSettings) image.Image

func CreateVersionProvider

func CreateVersionProvider() *testVersionProvider

func EncodeCard

func EncodeCard(card vcard.Card) []byte

func LoadTestSettings

func LoadTestSettings() configcli.CLIFileSettings

func NormalizeNewLines

func NormalizeNewLines(s string) string

func ToRGBA

func ToRGBA(img image.Image) *image.RGBA

Types

This section is empty.

Jump to

Keyboard shortcuts

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