MCPcopy Create free account

hub / github.com/bagashiz/go-pos / functions

Functions350 in github.com/bagashiz/go-pos

MethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/core/port/mock/order.go:39
MethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/core/port/mock/order.go:107
MethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/core/port/mock/payment.go:136
MethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/core/port/mock/category.go:136
MethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/core/port/mock/auth.go:92
MethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/core/port/mock/user.go:151
MethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/core/port/mock/product.go:136
MethodGet
Get mocks base method.
internal/core/port/mock/cache.go:86
MethodGet
Get indicates an expected call of Get.
internal/core/port/mock/cache.go:95
MethodGet
Get retrieves the value from the redis database
internal/adapter/storage/redis/redis.go:42
MethodGetCategory
GetCategory mocks base method.
internal/core/port/mock/category.go:170
MethodGetCategory
GetCategory indicates an expected call of GetCategory.
internal/core/port/mock/category.go:179
MethodGetCategory
GetCategory godoc @Summary Get a category @Description get a category by id @Tags Categories @Accept json @Produce json @Param id path
internal/adapter/handler/http/category.go:84
MethodGetCategoryByID
GetCategoryByID mocks base method.
internal/core/port/mock/category.go:73
MethodGetCategoryByID
GetCategoryByID indicates an expected call of GetCategoryByID.
internal/core/port/mock/category.go:82
MethodGetCategoryByID
GetCategoryByID retrieves a category record from the database by id
internal/adapter/storage/postgres/repository/category.go:57
MethodGetOrder
GetOrder gets an order by ID
internal/core/service/order.go:130
MethodGetOrder
GetOrder mocks base method.
internal/core/port/mock/order.go:127
MethodGetOrder
GetOrder indicates an expected call of GetOrder.
internal/core/port/mock/order.go:136
MethodGetOrder
GetOrder godoc @Summary Get an order @Description Get an order by id and return the order data with purchase details @Tags Orders @Accept js
internal/adapter/handler/http/order.go:106
MethodGetOrderByID
GetOrderByID mocks base method.
internal/core/port/mock/order.go:59
MethodGetOrderByID
GetOrderByID indicates an expected call of GetOrderByID.
internal/core/port/mock/order.go:68
MethodGetOrderByID
GetOrderByID gets an order by ID from the database
internal/adapter/storage/postgres/repository/order.go:121
MethodGetPayment
GetPayment mocks base method.
internal/core/port/mock/payment.go:170
MethodGetPayment
GetPayment indicates an expected call of GetPayment.
internal/core/port/mock/payment.go:179
MethodGetPayment
GetPayment godoc @Summary Get a payment @Description get a payment by id @Tags Payments @Accept json @Produce json @Param id path int
internal/adapter/handler/http/payment.go:88
MethodGetPaymentByID
GetPaymentByID mocks base method.
internal/core/port/mock/payment.go:73
MethodGetPaymentByID
GetPaymentByID indicates an expected call of GetPaymentByID.
internal/core/port/mock/payment.go:82
MethodGetPaymentByID
GetPaymentByID retrieves a payment record from the database by id
internal/adapter/storage/postgres/repository/payment.go:59
MethodGetProduct
GetProduct mocks base method.
internal/core/port/mock/product.go:170
MethodGetProduct
GetProduct indicates an expected call of GetProduct.
internal/core/port/mock/product.go:179
MethodGetProduct
GetProduct godoc @Summary Get a product @Description get a product by id with its category @Tags Products @Accept json @Produce json @Par
internal/adapter/handler/http/product.go:92
MethodGetProductByID
GetProductByID mocks base method.
internal/core/port/mock/product.go:73
MethodGetProductByID
GetProductByID indicates an expected call of GetProductByID.
internal/core/port/mock/product.go:82
MethodGetProductByID
GetProductByID retrieves a product record from the database by id
internal/adapter/storage/postgres/repository/product.go:62
MethodGetUser
GetUser mocks base method.
internal/core/port/mock/user.go:170
MethodGetUser
GetUser indicates an expected call of GetUser.
internal/core/port/mock/user.go:179
MethodGetUser
GetUser godoc @Summary Get a user @Description Get a user by id @Tags Users @Accept json @Produce json @Param id path uint64 true "U
internal/adapter/handler/http/user.go:132
MethodGetUserByEmail
GetUserByEmail mocks base method.
internal/core/port/mock/user.go:73
MethodGetUserByEmail
GetUserByEmail indicates an expected call of GetUserByEmail.
internal/core/port/mock/user.go:82
MethodGetUserByEmail
GetUserByEmailAndPassword gets a user by email from the database
internal/adapter/storage/postgres/repository/user.go:93
MethodGetUserByID
GetUserByID mocks base method.
internal/core/port/mock/user.go:88
MethodGetUserByID
GetUserByID indicates an expected call of GetUserByID.
internal/core/port/mock/user.go:97
MethodGetUserByID
GetUserByID gets a user by ID from the database
internal/adapter/storage/postgres/repository/user.go:60
MethodListCategories
ListCategories selects a list of categories with pagination
internal/core/port/category.go:18
MethodListCategories
ListCategories mocks base method.
internal/core/port/mock/category.go:88
MethodListCategories
ListCategories indicates an expected call of ListCategories.
internal/core/port/mock/category.go:97
MethodListCategories
ListCategories mocks base method.
internal/core/port/mock/category.go:185
MethodListCategories
ListCategories indicates an expected call of ListCategories.
internal/core/port/mock/category.go:194
MethodListCategories
ListCategories retrieves a list of categories from the database
internal/adapter/storage/postgres/repository/category.go:87
MethodListCategories
ListCategories godoc @Summary List categories @Description List categories with pagination @Tags Categories @Accept json @Produce json @P
internal/adapter/handler/http/category.go:122
MethodListOrders
ListOrders lists all orders
internal/core/service/order.go:205
MethodListOrders
ListOrders selects a list of orders with pagination
internal/core/port/order.go:18
MethodListOrders
ListOrders mocks base method.
internal/core/port/mock/order.go:74
MethodListOrders
ListOrders indicates an expected call of ListOrders.
internal/core/port/mock/order.go:83
MethodListOrders
ListOrders mocks base method.
internal/core/port/mock/order.go:142
MethodListOrders
ListOrders indicates an expected call of ListOrders.
internal/core/port/mock/order.go:151
MethodListOrders
ListOrders lists all orders from the database
internal/adapter/storage/postgres/repository/order.go:197
MethodListOrders
ListOrders godoc @Summary List orders @Description List orders and return an array of order data with purchase details @Tags Orders @Accept
internal/adapter/handler/http/order.go:145
MethodListPayments
ListPayments selects a list of payments with pagination
internal/core/port/payment.go:18
MethodListPayments
ListPayments mocks base method.
internal/core/port/mock/payment.go:88
MethodListPayments
ListPayments indicates an expected call of ListPayments.
internal/core/port/mock/payment.go:97
MethodListPayments
ListPayments mocks base method.
internal/core/port/mock/payment.go:185
MethodListPayments
ListPayments indicates an expected call of ListPayments.
internal/core/port/mock/payment.go:194
MethodListPayments
ListPayments retrieves a list of payments from the database
internal/adapter/storage/postgres/repository/payment.go:91
MethodListPayments
ListPayments godoc @Summary List payments @Description List payments with pagination @Tags Payments @Accept json @Produce json @Param s
internal/adapter/handler/http/payment.go:126
MethodListProducts
ListProducts selects a list of products with pagination
internal/core/port/product.go:18
MethodListProducts
ListProducts mocks base method.
internal/core/port/mock/product.go:88
MethodListProducts
ListProducts indicates an expected call of ListProducts.
internal/core/port/mock/product.go:97
MethodListProducts
ListProducts mocks base method.
internal/core/port/mock/product.go:185
MethodListProducts
ListProducts indicates an expected call of ListProducts.
internal/core/port/mock/product.go:194
MethodListProducts
ListProducts retrieves a list of products from the database
internal/adapter/storage/postgres/repository/product.go:97
MethodListProducts
ListProducts godoc @Summary List products @Description List products with pagination @Tags Products @Accept json @Produce json @Param c
internal/adapter/handler/http/product.go:134
MethodListUsers
ListUsers selects a list of users with pagination
internal/core/port/user.go:20
MethodListUsers
ListUsers mocks base method.
internal/core/port/mock/user.go:103
MethodListUsers
ListUsers indicates an expected call of ListUsers.
internal/core/port/mock/user.go:112
MethodListUsers
ListUsers mocks base method.
internal/core/port/mock/user.go:185
MethodListUsers
ListUsers indicates an expected call of ListUsers.
internal/core/port/mock/user.go:194
MethodListUsers
ListUsers lists all users from the database
internal/adapter/storage/postgres/repository/user.go:126
MethodListUsers
ListUsers godoc @Summary List users @Description List users with pagination @Tags Users @Accept json @Produce json @Param skip query u
internal/adapter/handler/http/user.go:87
MethodLogin
Login mocks base method.
internal/core/port/mock/auth.go:97
MethodLogin
Login indicates an expected call of Login.
internal/core/port/mock/auth.go:106
MethodLogin
Login godoc @Summary Login and get an access token @Description Logs in a registered user and returns an access token if the credentials are valid
internal/adapter/handler/http/auth.go:39
FunctionNewMockAuthService
NewMockAuthService creates a new mock instance.
internal/core/port/mock/auth.go:85
FunctionNewMockCategoryService
NewMockCategoryService creates a new mock instance.
internal/core/port/mock/category.go:129
FunctionNewMockOrderRepository
NewMockOrderRepository creates a new mock instance.
internal/core/port/mock/order.go:32
FunctionNewMockOrderService
NewMockOrderService creates a new mock instance.
internal/core/port/mock/order.go:100
FunctionNewMockPaymentService
NewMockPaymentService creates a new mock instance.
internal/core/port/mock/payment.go:129
FunctionNewMockProductService
NewMockProductService creates a new mock instance.
internal/core/port/mock/product.go:129
FunctionNewMockUserService
NewMockUserService creates a new mock instance.
internal/core/port/mock/user.go:144
MethodRegister
Register mocks base method.
internal/core/port/mock/user.go:200
MethodRegister
Register indicates an expected call of Register.
internal/core/port/mock/user.go:209
MethodRegister
Register godoc @Summary Register a new user @Description create a new user account with default role "cashier" @Tags Users @Accept json @Pr
internal/adapter/handler/http/user.go:43
MethodSet
Set mocks base method.
internal/core/port/mock/cache.go:101
MethodSet
Set indicates an expected call of Set.
internal/core/port/mock/cache.go:109
MethodSet
Set stores the value in the redis database
internal/adapter/storage/redis/redis.go:37
FunctionTestAuthService_Login
(t *testing.T)
internal/core/service/auth_test.go:25
FunctionTestCategoryService_CreateCategory
(t *testing.T)
internal/core/service/category_test.go:26
FunctionTestCategoryService_DeleteCategory
(t *testing.T)
internal/core/service/category_test.go:883
FunctionTestCategoryService_GetCategory
(t *testing.T)
internal/core/service/category_test.go:200
← previousnext →201–300 of 350, ranked by callers