testsuite

package
v0.0.0-...-14d7d22 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CartRepositoryTestSuite

type CartRepositoryTestSuite struct {
	suite.Suite
	NewRepository func() persistence.CartRepository
}

CartRepositoryTestSuite is the suite that tests that a cart repository behaves as expected. Use RunSuite to run it.

func (*CartRepositoryTestSuite) RunSuite

func (s *CartRepositoryTestSuite) RunSuite(t *testing.T)

RunSuite runs the test suite.

func (*CartRepositoryTestSuite) TestCreateCart

func (s *CartRepositoryTestSuite) TestCreateCart()

TestCreateCart tests the cart creation.

func (*CartRepositoryTestSuite) TestDeleteCartOfUser

func (s *CartRepositoryTestSuite) TestDeleteCartOfUser()

TestDeleteCartOfUser tests deleting a cart of a user.

func (*CartRepositoryTestSuite) TestFindAllUnlockedCartsOfUser

func (s *CartRepositoryTestSuite) TestFindAllUnlockedCartsOfUser()

TestFindAllUnlockedCartsOfUser tests finding all unlocked carts of a user.

func (*CartRepositoryTestSuite) TestFindCartOfUser

func (s *CartRepositoryTestSuite) TestFindCartOfUser()

TestFindCartOfUser tests finding a cart of a user.

func (*CartRepositoryTestSuite) TestLockCartOfUser

func (s *CartRepositoryTestSuite) TestLockCartOfUser()

TestLockCartOfUser tests locking a cart of a user.

func (*CartRepositoryTestSuite) TestUpdateCartOfUser

func (s *CartRepositoryTestSuite) TestUpdateCartOfUser()

TestUpdateCartOfUser tests updating carts.

type CouponRepositoryTestSuite

type CouponRepositoryTestSuite struct {
	suite.Suite
	NewRepository func() persistence.CouponRepository
}

CouponRepositoryTestSuite is the suite that tests that a coupon repository behaves as expected. Use RunSuite to run it.

func (*CouponRepositoryTestSuite) RunSuite

func (s *CouponRepositoryTestSuite) RunSuite(t *testing.T)

RunSuite runs the test suite.

func (*CouponRepositoryTestSuite) TestFindValidCoupon

func (s *CouponRepositoryTestSuite) TestFindValidCoupon()

TestFindValidCoupon tests finding a non-expired coupon.

func (*CouponRepositoryTestSuite) TestStoreCoupon

func (s *CouponRepositoryTestSuite) TestStoreCoupon()

TestStoreCoupon tests the coupon creation/updates.

type OrderRepositoryTestSuite

type OrderRepositoryTestSuite struct {
	suite.Suite
	NewRepository func() persistence.OrderRepository
}

OrderRepositoryTestSuite is the suite that tests that a order repository behaves as expected. Use RunSuite to run it.

func (*OrderRepositoryTestSuite) RunSuite

func (s *OrderRepositoryTestSuite) RunSuite(t *testing.T)

RunSuite runs the test suite.

func (*OrderRepositoryTestSuite) TestCreateOrder

func (s *OrderRepositoryTestSuite) TestCreateOrder()

TestCreateOrder tests the order creation.

func (*OrderRepositoryTestSuite) TestDeleteOrderOfUser

func (s *OrderRepositoryTestSuite) TestDeleteOrderOfUser()

TestDeleteOrderOfUser tests deleting an order of a user.

func (*OrderRepositoryTestSuite) TestFindOrderOfUser

func (s *OrderRepositoryTestSuite) TestFindOrderOfUser()

TestFindOrderOfUser tests finding an order of a user.

func (*OrderRepositoryTestSuite) TestLockOrderOfUser

func (s *OrderRepositoryTestSuite) TestLockOrderOfUser()

TestLockOrderOfUser tests locking an order of a user.

type PlacedOrderRepositoryTestSuite

type PlacedOrderRepositoryTestSuite struct {
	suite.Suite
	NewRepository func() persistence.PlacedOrderRepository
}

PlacedOrderRepositoryTestSuite is the suite that tests that a placed order repository behaves as expected. Use RunSuite to run it.

func (*PlacedOrderRepositoryTestSuite) RunSuite

func (s *PlacedOrderRepositoryTestSuite) RunSuite(t *testing.T)

RunSuite runs the test suite.

func (*PlacedOrderRepositoryTestSuite) TestPlaceOrder

func (s *PlacedOrderRepositoryTestSuite) TestPlaceOrder()

TestPlaceOrder tests placing orders.

type ProductRepositoryTestSuite

type ProductRepositoryTestSuite struct {
	suite.Suite
	NewRepository func() persistence.ProductRepository
}

ProductRepositoryTestSuite is the suite that tests that a product repository behaves as expected. Use RunSuite to run it.

func (*ProductRepositoryTestSuite) RunSuite

func (s *ProductRepositoryTestSuite) RunSuite(t *testing.T)

RunSuite runs the test suite.

func (*ProductRepositoryTestSuite) TestCreateProduct

func (s *ProductRepositoryTestSuite) TestCreateProduct()

TestCreateProduct tests the product creation.

func (*ProductRepositoryTestSuite) TestFindAllProducts

func (s *ProductRepositoryTestSuite) TestFindAllProducts()

TestFindAllProducts tests finding all products.

func (*ProductRepositoryTestSuite) TestFindProduct

func (s *ProductRepositoryTestSuite) TestFindProduct()

TestFindProduct tests finding a product.

type UserRepositoryTestSuite

type UserRepositoryTestSuite struct {
	suite.Suite
	NewRepository func() persistence.UserRepository
}

UserRepositoryTestSuite is the suite that tests that a user repository behaves as expected. Use RunSuite to run it.

func (*UserRepositoryTestSuite) RunSuite

func (s *UserRepositoryTestSuite) RunSuite(t *testing.T)

RunSuite runs the test suite.

func (*UserRepositoryTestSuite) TestCreateUser

func (s *UserRepositoryTestSuite) TestCreateUser()

TestCreateUser tests the user creation.

func (*UserRepositoryTestSuite) TestFindUserByIDAndPassword

func (s *UserRepositoryTestSuite) TestFindUserByIDAndPassword()

TestFindUserByIDAndPassword tests finding a user by name and password.

func (*UserRepositoryTestSuite) TestFindUserByNameAndPassword

func (s *UserRepositoryTestSuite) TestFindUserByNameAndPassword()

TestFindUserByNameAndPassword tests finding a user by name and password.

Jump to

Keyboard shortcuts

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