Home | History | Annotate | Download | only in tests

Lines Matching refs:YAnnot

26 @pytest.mark.parametrize('XAnnot,MaybeConstXAnnot,XConstRefAnnot,YAnnot', [
38 def test_bind_interface(XAnnot, MaybeConstXAnnot, XConstRefAnnot, YAnnot):
53 .bind<XAnnot, YAnnot>();
67 @pytest.mark.parametrize('XAnnot,ConstXAnnot,XConstRefAnnot,YAnnot', [
74 def test_bind_interface_to_constant(XAnnot, ConstXAnnot, XConstRefAnnot, YAnnot):
89 .bindInstance<YAnnot, Y>(y)
90 .bind<XAnnot, YAnnot>();
104 @pytest.mark.parametrize('XAnnot,XRefAnnot,YAnnot', [
108 def test_bind_interface_target_bound_in_other_component(XAnnot, XRefAnnot, YAnnot):
119 fruit::Component<fruit::Required<YAnnot>, XAnnot> getComponent() {
121 .bind<XAnnot, YAnnot>();
126 .registerConstructor<YAnnot()>()
141 @pytest.mark.parametrize('XAnnot,XRefAnnot,YAnnot', [
145 def test_bind_nonconst_interface_requires_nonconst_target(XAnnot, XRefAnnot, YAnnot):
156 fruit::Component<fruit::Required<const YAnnot>, XAnnot> getComponent() {
158 .bind<XAnnot, YAnnot>();
162 'ConstBindingDeclaredAsRequiredButNonConstBindingRequiredError<YAnnot>',
168 @pytest.mark.parametrize('XAnnot,YAnnot', [
172 def test_bind_interface_to_constant_nonconst_required_const_bound_error(XAnnot, YAnnot):
187 .bindInstance<YAnnot, Y>(y)
188 .bind<XAnnot, YAnnot>();
192 'NonConstBindingRequiredButConstBindingProvidedError<YAnnot>',
198 @pytest.mark.parametrize('XAnnot,XRefAnnot,YAnnot', [
202 def test_bind_nonconst_interface_requires_nonconst_target_abstract(XAnnot, XRefAnnot, YAnnot):
210 fruit::Component<fruit::Required<const YAnnot>, XAnnot> getComponent() {
212 .bind<XAnnot, YAnnot>();
216 'ConstBindingDeclaredAsRequiredButNonConstBindingRequiredError<YAnnot>',