MCPcopy Create free account

hub / github.com/codeedu/imersaofc5 / functions

Functions103 in github.com/codeedu/imersaofc5

↓ 6 callersFunctionNewCreditCard
(number string, name string, expirationMonth int, expirationYear int, ExpirationCVV int)
golang/domain/entity/credit_card.go:17
↓ 5 callersMethodInsert
(id string, account string, amount float64, status string, errorMessage string)
golang/domain/repository/repository.go:4
↓ 5 callersMethodPublish
(msg interface{}, key []byte, topic string)
golang/adapter/broker/interface.go:4
↓ 4 callersMethodExecute
(input TransactionDtoInput)
golang/usecase/process_transaction/process_transaction.go:19
↓ 4 callersMethodIsValid
()
golang/domain/entity/transaction.go:23
↓ 3 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
golang/domain/repository/mock/mock.go:32
↓ 3 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
golang/adapter/broker/mock/mock.go:32
↓ 3 callersFunctionNewProcessTransaction
(repository repository.TransactionRepository, producerInterface broker.ProducerInterface, topic string)
golang/usecase/process_transaction/process_transaction.go:15
↓ 3 callersFunctionNewTransaction
()
golang/domain/entity/transaction.go:19
↓ 3 callersMethodfindOne
(idOrToken: string)
nestjs/src/accounts/accounts.service.ts:21
↓ 3 callersMethodfindOneUsingAccount
(id: string)
nestjs/src/orders/orders.service.ts:49
↓ 2 callersFunctioncreateEmotionCache
()
nextjs/src/utils/createEmotionCache.tsx:3
↓ 2 callersMethodfindOne
(id: string)
nestjs/src/orders/orders.service.ts:59
↓ 2 callersMethodpublish
(output TransactionDtoOutput, key []byte)
golang/usecase/process_transaction/process_transaction.go:76
↓ 2 callersMethodrejectTransaction
(transaction *entity.Transaction, invalidTransaction error)
golang/usecase/process_transaction/process_transaction.go:57
↓ 1 callersMethodBind
(interface{})
golang/adapter/presenter/interface.go:5
↓ 1 callersMethodConsume
(msgChan chan *ckafka.Message)
golang/adapter/broker/kafka/consumer.go:17
↓ 1 callersMethodCreateTransactionRepository
()
golang/adapter/factory/database_repository.go:17
↓ 1 callersMethodInsert
(id string, account string, amount float64, status string, errorMessage string)
golang/adapter/repository/transaction_repository_db.go:16
↓ 1 callersMethodIsValid
()
golang/domain/entity/credit_card.go:32
↓ 1 callersFunctionNewKafkaProducer
(configMap *ckafka.ConfigMap, presenter presenter.Presenter)
golang/adapter/broker/kafka/producer.go:13
↓ 1 callersFunctionNewTransactionRepositoryDb
(db *sql.DB)
golang/adapter/repository/transaction_repository_db.go:12
↓ 1 callersMethodSetCreditCard
(card CreditCard)
golang/domain/entity/transaction.go:33
↓ 1 callersMethodShow
()
golang/adapter/presenter/interface.go:4
↓ 1 callersMethodapproveTransaction
(input TransactionDtoInput, transaction *entity.Transaction)
golang/usecase/process_transaction/process_transaction.go:38
↓ 1 callersFunctionbootstrap
()
nestjs/src/main.ts:5
↓ 1 callersMethodcreate
(createOrderDto: CreateOrderDto)
nestjs/src/orders/orders.service.ts:20
↓ 1 callersMethodgetHello
()
nestjs/src/app.service.ts:5
↓ 1 callersMethodsetBy
(token: string)
nestjs/src/accounts/account-storage/account-storage.service.ts:16
↓ 1 callersMethodupdate
(@Param('id') id: string, @Body() updateOrderDto: UpdateOrderDto)
nestjs/src/orders/orders.controller.ts:41
↓ 1 callersMethodvalidateMonth
()
golang/domain/entity/credit_card.go:57
↓ 1 callersMethodvalidateNumber
()
golang/domain/entity/credit_card.go:49
↓ 1 callersMethodvalidateYear
()
golang/domain/entity/credit_card.go:64
MethodBind
(input interface{})
golang/adapter/presenter/transaction/transaction_kafka.go:18
MethodCreateTransactionRepository
()
golang/domain/factory/repository.go:6
FunctionDown
(db *sql.DB, migrationsDir fs.FS)
golang/adapter/repository/fixture/fixture.go:23
FunctionHome
()
nextjs/src/pages/index.tsx:3
MethodInsert
Insert mocks base method.
golang/domain/repository/mock/mock.go:37
MethodInsert
Insert indicates an expected call of Insert.
golang/domain/repository/mock/mock.go:45
FunctionLoginPage
()
nextjs/src/pages/login.tsx:6
FunctionMyApp
(props: MyAppProps)
nextjs/src/pages/_app.tsx:17
FunctionNavbar
()
nextjs/src/components/Navbar.tsx:4
FunctionNewConsumer
(configMap *ckafka.ConfigMap, topics []string)
golang/adapter/broker/kafka/consumer.go:10
FunctionNewMockProducerInterface
NewMockProducerInterface creates a new mock instance.
golang/adapter/broker/mock/mock.go:25
FunctionNewMockTransactionRepository
NewMockTransactionRepository creates a new mock instance.
golang/domain/repository/mock/mock.go:25
FunctionNewRepositoryDatabaseFactory
(db *sql.DB)
golang/adapter/factory/database_repository.go:13
FunctionNewTransactionKafkaPresenter
()
golang/adapter/presenter/transaction/transaction_kafka.go:14
FunctionOrderShowPage
(props: any)
nextjs/src/pages/orders/[id].tsx:16
FunctionOrdersPage
(props: any)
nextjs/src/pages/orders/index.tsx:13
MethodPublish
(msg interface{}, key []byte, topic string)
golang/adapter/broker/kafka/producer.go:17
MethodPublish
Publish mocks base method.
golang/adapter/broker/mock/mock.go:37
MethodPublish
Publish indicates an expected call of Publish.
golang/adapter/broker/mock/mock.go:45
MethodShow
()
golang/adapter/presenter/transaction/transaction_kafka.go:25
FunctionTestCreditCardExpirationMonth
(t *testing.T)
golang/domain/entity/credit_card_test.go:17
FunctionTestCreditCardExpirationYear
(t *testing.T)
golang/domain/entity/credit_card_test.go:28
FunctionTestCreditCardNumber
(t *testing.T)
golang/domain/entity/credit_card_test.go:9
FunctionTestProcessTransaction_ExecuteApprovedTransaction
(t *testing.T)
golang/usecase/process_transaction/process_transaction_test.go:81
FunctionTestProcessTransaction_ExecuteInvalidCreditCard
(t *testing.T)
golang/usecase/process_transaction/process_transaction_test.go:13
FunctionTestProcessTransaction_ExecuteRejectedTransaction
(t *testing.T)
golang/usecase/process_transaction/process_transaction_test.go:46
FunctionTestProducerPublish
(t *testing.T)
golang/adapter/broker/kafka/producer_test.go:12
FunctionTestTransactionRepositoryDbInsert
(t *testing.T)
golang/adapter/repository/transaction_repository_db_test.go:11
FunctionTestTransaction_IsNotValidWithAmountGreaterThan1000
(t *testing.T)
golang/domain/entity/transaction_test.go:16
FunctionTestTransaction_IsNotValidWithAmountLessThan1
(t *testing.T)
golang/domain/entity/transaction_test.go:26
FunctionTestTransaction_IsValid
(t *testing.T)
golang/domain/entity/transaction_test.go:8
FunctionUp
(migrationsDir fs.FS)
golang/adapter/repository/fixture/fixture.go:12
Methodaccount
()
nestjs/src/accounts/account-storage/account-storage.service.ts:12
MethodcanActivate
(context: ExecutionContext)
nestjs/src/accounts/token.guard.ts:8
Methodconstructor
(private readonly appService: AppService)
nestjs/src/app.controller.ts:6
Methodconstructor
(private accountStorage: AccountStorageService)
nestjs/src/accounts/token.guard.ts:6
Methodconstructor
(private readonly accountsService: AccountsService)
nestjs/src/accounts/accounts.controller.ts:16
Methodconstructor
(@InjectModel(Account) private accountModel: typeof Account)
nestjs/src/accounts/accounts.service.ts:11
Methodconstructor
(private accountService: AccountsService)
nestjs/src/accounts/account-storage/account-storage.service.ts:10
Methodconstructor
(private readonly ordersService: OrdersService)
nestjs/src/orders/orders.controller.ts:23
Methodconstructor
( @InjectModel(Order) private orderModel: typeof Order, private accountStorage: AccountStorageServ
nestjs/src/orders/orders.service.ts:12
MethodconsumerUpdateStatus
(@Payload() message: KafkaMessage)
nestjs/src/orders/orders.controller.ts:52
Methodcreate
(@Body() createAccountDto: CreateAccountDto)
nestjs/src/accounts/accounts.controller.ts:19
Methodcreate
(createAccountDto: CreateAccountDto)
nestjs/src/accounts/accounts.service.ts:13
Methodcreate
(@Body() createOrderDto: CreateOrderDto)
nestjs/src/orders/orders.controller.ts:26
Functionfetcher
(url: string)
nextjs/src/pages/orders/index.tsx:11
Functionfetcher
(url: string)
nextjs/src/pages/orders/[id].tsx:14
MethodfindAll
()
nestjs/src/accounts/accounts.controller.ts:24
MethodfindAll
()
nestjs/src/accounts/accounts.service.ts:17
MethodfindAll
()
nestjs/src/orders/orders.controller.ts:31
MethodfindAll
()
nestjs/src/orders/orders.service.ts:40
MethodfindOne
(@Param('id') id: string)
nestjs/src/accounts/accounts.controller.ts:29
MethodfindOne
(@Param('id') id: string)
nestjs/src/orders/orders.controller.ts:36
MethodgetHello
()
nestjs/src/app.controller.ts:9
FunctiongetStaticPaths
(context)
nextjs/src/pages/orders/[id].tsx:86
FunctiongetStaticProps
(context)
nextjs/src/pages/orders/[id].tsx:79
Functionhandler
( req: NextApiRequest, res: NextApiResponse<Data> )
nextjs/src/pages/api/hello.ts:8
Functionlogin
(req: NextApiRequest, res: NextApiResponse)
nextjs/src/pages/api/login.ts:9
Functionmain
()
golang/cmd/main.go:17
FunctiononSubmit
(event: FormEvent)
nextjs/src/pages/login.tsx:8
FunctionordersList
(req: NextApiRequest, res: NextApiResponse)
nextjs/src/pages/api/orders/index.tsx:8
FunctionordersList
(req: NextApiRequest, res: NextApiResponse)
nextjs/src/pages/api/orders/[id].tsx:8
Methodremove
(@Param('id') id: string)
nestjs/src/accounts/accounts.controller.ts:39
Methodremove
(id: string)
nestjs/src/accounts/accounts.service.ts:40
Methodremove
(@Param('id') id: string)
nestjs/src/orders/orders.controller.ts:47
Methodremove
(id: string)
nestjs/src/orders/orders.service.ts:71
Methodrender
()
nextjs/src/pages/_document.tsx:8
next →1–100 of 103, ranked by callers