Skip to content

Commit

Permalink
dep test
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandros committed Oct 22, 2024
1 parent 2229835 commit 5a67cc2
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions ferrunix/tests/it/derive_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,24 @@ use ferrunix::{Inject, RegistrationFunc, Registry};

// ferrunix::autoregister!(RegistrationFunc::new(Empty::register));


#[derive(Inject)]
#[provides(transient)]
struct Dep0 {}

#[derive(Inject)]
#[provides(transient = "StringTemplate")]
struct StringTemplate {
#[inject(ctor = r#""The Magic Number is ""#)]
raw: &'static str,
#[provides(transient)]
struct Dep1 {
#[inject(transient)]
dep0: Dep0,
}

#[derive(Inject)]
#[provides(transient)]
struct Dep2 {
#[inject(transient)]
dep1: Dep1,
}

#[tokio::test]
async fn simple_derive() {
Expand Down

0 comments on commit 5a67cc2

Please sign in to comment.