mock

package
v0.0.0-...-dc32c78 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuctionRepository

type MockAuctionRepository struct {
	mock.Mock
}

func (*MockAuctionRepository) CreateAuction

func (m *MockAuctionRepository) CreateAuction(input *entity.Auction) (*entity.Auction, error)

func (*MockAuctionRepository) DeleteAuction

func (m *MockAuctionRepository) DeleteAuction(id uint) error

func (*MockAuctionRepository) FindActiveAuction

func (m *MockAuctionRepository) FindActiveAuction() (*entity.Auction, error)

func (*MockAuctionRepository) FindAllAuctions

func (m *MockAuctionRepository) FindAllAuctions() ([]*entity.Auction, error)

func (*MockAuctionRepository) FindAuctionById

func (m *MockAuctionRepository) FindAuctionById(id uint) (*entity.Auction, error)

func (*MockAuctionRepository) UpdateAuction

func (m *MockAuctionRepository) UpdateAuction(input *entity.Auction) (*entity.Auction, error)

type MockBidRepository

type MockBidRepository struct {
	mock.Mock
}

func (*MockBidRepository) CreateBid

func (m *MockBidRepository) CreateBid(input *entity.Bid) (*entity.Bid, error)

func (*MockBidRepository) DeleteBid

func (m *MockBidRepository) DeleteBid(id uint) error

func (*MockBidRepository) FindAllBids

func (m *MockBidRepository) FindAllBids() ([]*entity.Bid, error)

func (*MockBidRepository) FindBidById

func (m *MockBidRepository) FindBidById(id uint) (*entity.Bid, error)

func (*MockBidRepository) FindBidsByAuctionId

func (m *MockBidRepository) FindBidsByAuctionId(id uint) ([]*entity.Bid, error)

func (*MockBidRepository) FindBidsByState

func (m *MockBidRepository) FindBidsByState(auctionId uint, state string) ([]*entity.Bid, error)

func (*MockBidRepository) UpdateBid

func (m *MockBidRepository) UpdateBid(input *entity.Bid) (*entity.Bid, error)

type MockContractRepository

type MockContractRepository struct {
	mock.Mock
}

func (*MockContractRepository) CreateContract

func (m *MockContractRepository) CreateContract(contract *entity.Contract) (*entity.Contract, error)

func (*MockContractRepository) DeleteContract

func (m *MockContractRepository) DeleteContract(symbol string) error

func (*MockContractRepository) FindAllContracts

func (m *MockContractRepository) FindAllContracts() ([]*entity.Contract, error)

func (*MockContractRepository) FindContractBySymbol

func (m *MockContractRepository) FindContractBySymbol(symbol string) (*entity.Contract, error)

func (*MockContractRepository) UpdateContract

func (m *MockContractRepository) UpdateContract(contract *entity.Contract) (*entity.Contract, error)

type MockOrderRepository

type MockOrderRepository struct {
	mock.Mock
}

func (*MockOrderRepository) CreateOrder

func (m *MockOrderRepository) CreateOrder(input *entity.Order) (*entity.Order, error)

func (*MockOrderRepository) DeleteOrder

func (m *MockOrderRepository) DeleteOrder(id uint) error

func (*MockOrderRepository) FindAllOrders

func (m *MockOrderRepository) FindAllOrders() ([]*entity.Order, error)

func (*MockOrderRepository) FindOrderById

func (m *MockOrderRepository) FindOrderById(id uint) (*entity.Order, error)

func (*MockOrderRepository) FindOrdersByUser

func (m *MockOrderRepository) FindOrdersByUser(buyer custom_type.Address) ([]*entity.Order, error)

func (*MockOrderRepository) UpdateOrder

func (m *MockOrderRepository) UpdateOrder(order *entity.Order) (*entity.Order, error)

type MockStationRepository

type MockStationRepository struct {
	mock.Mock
}

func (*MockStationRepository) CreateStation

func (m *MockStationRepository) CreateStation(input *entity.Station) (*entity.Station, error)

func (*MockStationRepository) DeleteStation

func (m *MockStationRepository) DeleteStation(id string) error

func (*MockStationRepository) FindAllStations

func (m *MockStationRepository) FindAllStations() ([]*entity.Station, error)

func (*MockStationRepository) FindStationById

func (m *MockStationRepository) FindStationById(id string) (*entity.Station, error)

func (*MockStationRepository) UpdateStation

func (m *MockStationRepository) UpdateStation(input *entity.Station) (*entity.Station, error)

type MockUserRepository

type MockUserRepository struct {
	mock.Mock
}

func (*MockUserRepository) CreateUser

func (m *MockUserRepository) CreateUser(input *entity.User) (*entity.User, error)

func (*MockUserRepository) DeleteUserByAddress

func (m *MockUserRepository) DeleteUserByAddress(address custom_type.Address) error

func (*MockUserRepository) FindAllUsers

func (m *MockUserRepository) FindAllUsers() ([]*entity.User, error)

func (*MockUserRepository) FindUserByAddress

func (m *MockUserRepository) FindUserByAddress(address custom_type.Address) (*entity.User, error)

func (*MockUserRepository) FindUserByRole

func (m *MockUserRepository) FindUserByRole(role string) (*entity.User, error)

func (*MockUserRepository) UpdateUser

func (m *MockUserRepository) UpdateUser(input *entity.User) (*entity.User, error)

Jump to

Keyboard shortcuts

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