MCPcopy Create free account

hub / github.com/MSC29/clean-architecture-rust / functions

Functions69 in github.com/MSC29/clean-architecture-rust

↓ 11 callersMethodexecute
(&self)
src/application/usecases/get_all_cat_facts_usecase.rs:20
↓ 6 callersMethodget_pool
(&self)
src/adapters/spi/db/db_connection.rs:10
↓ 4 callersFunctionsetup
()
tests/utils/utils_setup.rs:51
↓ 4 callersFunctionspawn_app
(db_name: &str)
tests/utils/utils_setup.rs:10
↓ 3 callersMethodexecute
(&self)
src/application/usecases/get_all_dog_facts_usecase.rs:20
↓ 3 callersMethodget_error_message
(&self)
src/domain/error.rs:18
↓ 2 callersMethodclient
(&self)
src/adapters/spi/http/http_connection.rs:6
↓ 2 callersMethodexecute
(&self)
src/application/usecases/get_one_random_cat_fact_usecase.rs:20
↓ 2 callersMethodexecute
(&self)
src/application/usecases/get_one_dog_fact_by_id_usecase.rs:21
↓ 2 callersFunctionrun
(listener: TcpListener, db_name: &str)
src/lib.rs:16
↓ 1 callersFunctionexecute_imports
(conn: &DbConnection)
tests/integration_tests/fixtures/fixtures_run.rs:7
↓ 1 callersMethodget_all_cat_facts
(&self)
src/adapters/spi/http/http_cat_facts_repository.rs:37
↓ 1 callersMethodget_all_dog_facts
(&self)
src/adapters/spi/db/db_dog_facts_repository.rs:26
↓ 1 callersMethodget_dog_fact_by_id
(&self, dog_fact_id: i32)
src/adapters/spi/db/db_dog_facts_repository.rs:15
↓ 1 callersMethodget_error_code
(&self)
src/domain/error.rs:22
↓ 1 callersMethodget_random_cat_fact
(&self)
src/adapters/spi/http/http_cat_facts_repository.rs:21
↓ 1 callersFunctionimport_dog_facts_fixtures
(conn: &DbConnection)
tests/integration_tests/fixtures/fixtures_run.rs:11
↓ 1 callersFunctionserver
(listener: TcpListener, db_name: &str)
src/infrastructure/mod.rs:14
↓ 1 callersFunctionspawn_http_spi
()
tests/utils/utils_setup.rs:28
↓ 1 callersMethodstatus_code
(&self)
src/adapters/api/shared/error_presenter.rs:23
Methodapplication_error
(error_message: &str, error: Option<Box<dyn Error>>)
src/application/utils/error_handling_utils.rs:7
Methoddrop
(&mut self)
tests/utils/test_context.rs:40
Methoderror_response
(&self)
src/adapters/api/shared/error_presenter.rs:27
Functionfacts_route
()
tests/utils/utils_setup.rs:29
Methodfmt
(&self, f: &mut fmt::Formatter)
src/domain/error.rs:12
Methodforbidden_error
()
src/application/utils/error_handling_utils.rs:24
Functionget_all_cat_facts
(data: web::Data<AppState>)
src/adapters/api/cat_facts/cat_facts_controllers.rs:17
Functionget_all_dog_facts
(data: web::Data<AppState>)
src/adapters/api/dog_facts/dog_facts_controllers.rs:19
Functionget_one_dog_fact_by_id
(data: web::Data<AppState>, path: web::Path<(i32,)>)
src/adapters/api/dog_facts/dog_facts_controllers.rs:29
Functionget_one_random_cat_fact
(data: web::Data<AppState>)
src/adapters/api/cat_facts/cat_facts_controllers.rs:27
Methodlog_error
(message: &str, err: &Option<Box<dyn Error>>)
src/application/utils/error_handling_utils.rs:34
Functionmain
()
src/main.rs:7
Methodmap_io_error
(e: ApiError)
src/adapters/api/shared/error_presenter.rs:39
Functionmock_http_spi
(path: &str)
tests/utils/utils_http.rs:3
Methodnew
(fact_id: i32, fact: String)
src/domain/dog_fact_entity.rs:8
Methodnew
(fact_txt: String, fact_length: i32)
src/domain/cat_fact_entity.rs:8
Methodnew
(repository: &'a dyn CatFactsRepositoryAbstract)
src/application/usecases/get_all_cat_facts_usecase.rs:13
Methodnew
(repository: &'a dyn DogFactsRepositoryAbstract)
src/application/usecases/get_all_dog_facts_usecase.rs:13
Methodnew
(repository: &'a dyn CatFactsRepositoryAbstract)
src/application/usecases/get_one_random_cat_fact_usecase.rs:13
Methodnew
(dog_fact_id: &'a i32, repository: &'a dyn DogFactsRepositoryAbstract)
src/application/usecases/get_one_dog_fact_by_id_usecase.rs:14
Methodnew
(base_url: &str, db_name: &str)
tests/utils/test_context.rs:14
Functionrandom_fact_route
()
tests/utils/utils_setup.rs:34
Functionread_from_file
(path: &str)
tests/utils/utils_file.rs:6
Functionroutes
(cfg: &mut web::ServiceConfig)
src/adapters/api/cat_facts/cat_facts_controllers.rs:12
Functionroutes
(cfg: &mut web::ServiceConfig)
src/adapters/api/dog_facts/dog_facts_controllers.rs:14
Functionroutes
(config: &mut web::ServiceConfig)
src/adapters/api/shared/routes.rs:5
Functiontest_should_return_empty_list
()
src/application/usecases/get_all_cat_facts_usecase.rs:58
Functiontest_should_return_empty_list
()
src/application/usecases/get_all_dog_facts_usecase.rs:58
Functiontest_should_return_error_with_generic_message_when_unexpected_repo_error
()
src/application/usecases/get_all_dog_facts_usecase.rs:38
Functiontest_should_return_error_with_generic_message_when_unexpected_repo_error
()
src/application/usecases/get_one_dog_fact_by_id_usecase.rs:40
Functiontest_should_return_generic_message_when_unexpected_repo_error
()
src/application/usecases/get_all_cat_facts_usecase.rs:38
Functiontest_should_return_generic_message_when_unexpected_repo_error
()
src/application/usecases/get_one_random_cat_fact_usecase.rs:38
Functiontest_should_return_list
()
src/application/usecases/get_all_cat_facts_usecase.rs:72
Functiontest_should_return_list
()
src/application/usecases/get_all_dog_facts_usecase.rs:72
Functiontest_should_return_multiple_results
()
tests/integration_tests/test_dog_facts.rs:5
Functiontest_should_return_multiple_results
()
tests/integration_tests/test_cat_facts.rs:5
Functiontest_should_return_one_result
()
src/application/usecases/get_one_random_cat_fact_usecase.rs:58
Functiontest_should_return_one_result
()
src/application/usecases/get_one_dog_fact_by_id_usecase.rs:60
Functiontest_should_return_one_results_only
()
tests/integration_tests/test_dog_facts.rs:26
Functiontest_should_return_one_results_only
()
tests/integration_tests/test_cat_facts.rs:29
Methodto_api
(entity: CatFactEntity)
src/adapters/api/cat_facts/cat_facts_mappers.rs:9
Methodto_api
(entity: DogFactEntity)
src/adapters/api/dog_facts/dog_facts_mappers.rs:8
Methodto_db
(entity: DogFactEntity)
src/adapters/spi/db/db_mappers.rs:8
Methodto_entity
(http_obj: CatFactApiModel)
src/adapters/spi/http/http_mappers.rs:15
Methodto_entity
(model: DogFact)
src/adapters/spi/db/db_mappers.rs:15
Methodto_entity
(_payload: CatFactPayload)
src/adapters/api/cat_facts/cat_facts_mappers.rs:16
Methodto_entity
(_payload: DogFactPayload)
src/adapters/api/dog_facts/dog_facts_mappers.rs:15
Methodto_http
(entity: CatFactEntity)
src/adapters/spi/http/http_mappers.rs:8
Methodunauthorized_error
()
src/application/utils/error_handling_utils.rs:15