test

package
v0.0.0-...-f5b5bba Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

type Helper struct {
	// contains filtered or unexported fields
}

Helper is used for testing as a helper

func NewHelper

func NewHelper() *Helper

NewHelper is a Helper for testing

func (*Helper) Close

func (h *Helper) Close() error

Close closes the connection

func (*Helper) CreateData

func (h *Helper) CreateData()

CreateData inserts test documents

func (*Helper) DeleteAll

func (h *Helper) DeleteAll() error

DeleteAll deletes all documents for test

type Product

type Product struct {
	ID          string
	Name        string
	CategoryIDs []string
	Attributes  map[string]interface{}
}

Product is type for test document

Jump to

Keyboard shortcuts

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