tests

package
v0.0.0-...-c954afd Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

type Access struct {
	App   http.Handler
	Token string
}

Access : struct for set Access Dependency Injection

func (*Access) List

func (u *Access) List(t *testing.T)

List : http handler for returning list of access

type Auths

type Auths struct {
	App   http.Handler
	Token string
}

Auths : struct for set AUths Dependency Injection

func (*Auths) Login

func (u *Auths) Login(t *testing.T)

List : http handler for returning list of users

type Brands

type Brands struct {
	App   http.Handler
	Token string
}

Brands : : struct for set Brands Dependency Injection

func (*Brands) Create

func (u *Brands) Create(t *testing.T) map[string]interface{}

Create : http handler for create new brand

func (*Brands) Delete

func (u *Brands) Delete(t *testing.T, id float64)

Delete brand

func (*Brands) List

func (u *Brands) List(t *testing.T)

List : http handler for returning list of brands

func (*Brands) Run

func (u *Brands) Run(t *testing.T)

Run : http handler for run brands testing

func (*Brands) Update

func (u *Brands) Update(t *testing.T, id float64)

Update : http handler for update brand by id

func (*Brands) View

func (u *Brands) View(t *testing.T, id float64)

View : http handler for retrieve brand by id

type ProductCategories

type ProductCategories struct {
	App   http.Handler
	Token string
}

ProductCategories : struct for set ProductCategories Dependency Injection

func (*ProductCategories) Create

func (u *ProductCategories) Create(t *testing.T) map[string]interface{}

Create : http handler for create new product category

func (*ProductCategories) Delete

func (u *ProductCategories) Delete(t *testing.T, id float64)

Delete product category

func (*ProductCategories) List

func (u *ProductCategories) List(t *testing.T)

List : http handler for returning list of ProductCategories

func (*ProductCategories) Run

func (u *ProductCategories) Run(t *testing.T)

Run : http handler for run ProductCategories testing

func (*ProductCategories) Update

func (u *ProductCategories) Update(t *testing.T, id float64)

Update : http handler for update product category by id

func (*ProductCategories) View

func (u *ProductCategories) View(t *testing.T, id float64)

View : http handler for retrieve product category by id

type Products

type Products struct {
	App   http.Handler
	Token string
}

Products : struct for set Products Dependency Injection

func (*Products) Create

func (u *Products) Create(t *testing.T) map[string]interface{}

Create : http handler for create new product

func (*Products) Delete

func (u *Products) Delete(t *testing.T, id float64)

Delete product

func (*Products) List

func (u *Products) List(t *testing.T)

List : http handler for returning list of products

func (*Products) Run

func (u *Products) Run(t *testing.T)

Run : http handler for run products testing

func (*Products) Update

func (u *Products) Update(t *testing.T, id float64)

Update : http handler for update product by id

func (*Products) View

func (u *Products) View(t *testing.T, id float64)

View : http handler for retrieve product by id

type Regions

type Regions struct {
	App   http.Handler
	Token string
}

Regions : struct for set Regions Dependency Injection

func (*Regions) Create

func (u *Regions) Create(t *testing.T) map[string]interface{}

Create : http handler for create new region

func (*Regions) Delete

func (u *Regions) Delete(t *testing.T, id float64)

Delete region

func (*Regions) List

func (u *Regions) List(t *testing.T)

List : http handler for returning list of regions

func (*Regions) Run

func (u *Regions) Run(t *testing.T)

Run : http handler for run regions teting

func (*Regions) Update

func (u *Regions) Update(t *testing.T, id float64)

Update : http handler for update regions by id

func (*Regions) View

func (u *Regions) View(t *testing.T, id float64)

View : http handler for retrieve regions by id

type Roles

type Roles struct {
	App   http.Handler
	Token string
}

Roles : struct for set Roles Dependency Injection

func (*Roles) Create

func (u *Roles) Create(t *testing.T) map[string]interface{}

Create : http handler for create new role

func (*Roles) Crud

func (u *Roles) Crud(t *testing.T)

Crud : http handler for roles crud

func (*Roles) Delete

func (u *Roles) Delete(t *testing.T, id float64)

Delete : http handler for delete roles by id

func (*Roles) Grant

func (u *Roles) Grant(t *testing.T, id float64, accessID float64)

Grant : http handler for grant access

func (*Roles) List

func (u *Roles) List(t *testing.T)

List : http handler for returning list of roles

func (*Roles) Revoke

func (u *Roles) Revoke(t *testing.T, id float64, accessID float64)

Revoke : http handler for revoke access

func (*Roles) Update

func (u *Roles) Update(t *testing.T, id float64)

Update : http handler for update roles by id

func (*Roles) View

func (u *Roles) View(t *testing.T, id float64)

View : http handler for retrieve roles by id

type Users

type Users struct {
	App   http.Handler
	Token string
}

Users : struct for set Users Dependency Injection

func (*Users) Create

func (u *Users) Create(t *testing.T) map[string]interface{}

Create : http handler for create new user

func (*Users) Crud

func (u *Users) Crud(t *testing.T)

Crud : http handler for users crud

func (*Users) Delete

func (u *Users) Delete(t *testing.T, id float64)

Delete : http handler for delete user by id

func (*Users) List

func (u *Users) List(t *testing.T)

List : http handler for returning list of users

func (*Users) Update

func (u *Users) Update(t *testing.T, id float64)

Update : http handler for update user by id

func (*Users) View

func (u *Users) View(t *testing.T, id float64)

View : http handler for retrieve user by id

Jump to

Keyboard shortcuts

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