tests

package
v0.0.0-...-80130f6 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DB db used for testing
	DB = utils.TestDB()
	// ProductExchangeResource import product exchange definition
	ProductExchangeResource = exchange.NewResource(&Product{}, exchange.Config{PrimaryField: "Code"})
)

Functions

This section is empty.

Types

type Category

type Category struct {
	gorm.Model
	Name string
}

type Product

type Product struct {
	gorm.Model
	Code       string
	Name       string
	Price      float64
	Tag        *string
	Category   Category
	CategoryID *uint
}

Jump to

Keyboard shortcuts

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