Lines Matching refs:WithAnnot
35 @pytest.mark.parametrize('IAnnot,XAnnot,WithAnnot', [
39 def test_provider_returning_value_success_with_annotation(IAnnot, XAnnot, WithAnnot):
56 Assert((injector.get<WithAnnot<I >>() .value == 5));
57 Assert((injector.get<WithAnnot<I* >>()->value == 5));
58 Assert((injector.get<WithAnnot<I& >>() .value == 5));
59 Assert((injector.get<WithAnnot<const I >>() .value == 5));
60 Assert((injector.get<WithAnnot<const I* >>()->value == 5));
61 Assert((injector.get<WithAnnot<const I& >>() .value == 5));
62 Assert((injector.get<WithAnnot<std::shared_ptr<I>>>()->value == 5));
63 Assert(fruit::impl::InjectorAccessorForTests::unsafeGet<WithAnnot<X>>(injector) == nullptr);
73 @pytest.mark.parametrize('IAnnot,XAnnot,XPtrAnnot,WithAnnot', [
77 def test_provider_returning_pointer_success_with_annotation(IAnnot, XAnnot, XPtrAnnot, WithAnnot):
94 Assert((injector.get<WithAnnot<I >>() .value == 5));
95 Assert((injector.get<WithAnnot<I* >>()->value == 5));
96 Assert((injector.get<WithAnnot<I& >>() .value == 5));
97 Assert((injector.get<WithAnnot<const I >>() .value == 5));
98 Assert((injector.get<WithAnnot<const I* >>()->value == 5));
99 Assert((injector.get<WithAnnot<const I& >>() .value == 5));
100 Assert((injector.get<WithAnnot<std::shared_ptr<I>>>()->value == 5));
101 Assert(fruit::impl::InjectorAccessorForTests::unsafeGet<WithAnnot<X>>(injector) == nullptr);