MCPcopy Create free account
hub / github.com/Migorithm/rustiful-backend / some_dependency

Method some_dependency

library/src/bootstrap.rs:33–45  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

31
32impl Dependency {
33 pub fn some_dependency(&self) -> fn(String, i32) -> ServiceResponse {
34 if cfg!(test) {
35 |_: String, _: i32| -> ServiceResponse {
36 println!("Some dependency invoked in test environment!");
37 ServiceResponse::Empty(())
38 }
39 } else {
40 |_: String, _: i32| -> ServiceResponse {
41 println!("Not Test");
42 ServiceResponse::Empty(())
43 }
44 }
45 }
46}
47
48pub type EventHandler<T> =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected