test

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package test provides common functions for testing.

Index

Constants

View Source
const NIF = "00000000A"

NIF - a test Spanish id

Variables

This section is empty.

Functions

func LoadEnvelope

func LoadEnvelope(name string) (*gobl.Envelope, error)

LoadEnvelope will load a test JSON document as a GOBL Envelope from the test folder

func LoadInvoice

func LoadInvoice(name string) (*bill.Invoice, error)

LoadInvoice grabs the gobl envelope and attempts to extract the invoice payload

func Path

func Path(elements ...string) string

Path joins the provided elements to the project root

func RootPath

func RootPath() string

RootPath returns the project root, regardless of current working directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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