test

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package test provides tools for testing the library

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCFDIFrom added in v0.25.0

func GenerateCFDIFrom(inv *bill.Invoice) (*cfdi.Document, error)

GenerateCFDIFrom returns a CFDI Document from a GOBL Invoice

func GetDataPath

func GetDataPath() string

GetDataPath returns the path to the `test/data` folder

func GetTestPath

func GetTestPath() string

GetTestPath returns the path to the `test` folder

func LoadTestEnvelope

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

LoadTestEnvelope returns a GOBL Envelope from a file in the `test/data` folder

func LoadTestInvoice added in v0.25.0

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

LoadTestInvoice returns a GOBL Invoice from a file in the `test/data` folder

func NewDocumentFrom

func NewDocumentFrom(name string) (*cfdi.Document, error)

NewDocumentFrom creates a CFDI Document from a GOBL file in the `test/data` folder

Types

This section is empty.

Jump to

Keyboard shortcuts

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