tests

package
v0.0.0-...-1095df5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCollections

type FakeCollections struct {
}

func (FakeCollections) FindPricesDocument

func (fake FakeCollections) FindPricesDocument(itemID int) *models.Prices

func (FakeCollections) FindProfitsDocument

func (fake FakeCollections) FindProfitsDocument(recipeID int) *models.Profits

func (FakeCollections) FindRecipesDocument

func (fake FakeCollections) FindRecipesDocument(recipeID int) *models.Recipes

The find functions just simply find if it's in the database.

func (FakeCollections) InsertPricesDocument

func (fake FakeCollections) InsertPricesDocument(itemID int) *models.Prices

func (FakeCollections) InsertProfitsDocument

func (fake FakeCollections) InsertProfitsDocument(info *xivapi.Information, recipeID int) *models.Profits

func (FakeCollections) InsertRecipesDocument

func (fake FakeCollections) InsertRecipesDocument(recipeID int) *models.Recipes

These insert functions simply insert/update into the database, and return you a result.

func (FakeCollections) ProfitDescCursor

func (fake FakeCollections) ProfitDescCursor() []*models.Profits

type ResultTest

type ResultTest struct {
	testing.TestSuite
}

Tests for the Results Folder

func (*ResultTest) After

func (t *ResultTest) After()

func (*ResultTest) Before

func (t *ResultTest) Before()

func (*ResultTest) Test_fails_if_ProfitInformation_returns_nothing

func (t *ResultTest) Test_fails_if_ProfitInformation_returns_nothing()

Unit test for ProfitInformation

func (*ResultTest) Test_fails_if_missing_DB_collection_or_InitDB_failed_to_connect

func (t *ResultTest) Test_fails_if_missing_DB_collection_or_InitDB_failed_to_connect()

Functional test for Database Connection

Jump to

Keyboard shortcuts

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