Home | History | Annotate | Download | only in tests

Lines Matching refs:XAnnot

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):
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>();
124 fruit::Component<XAnnot> getRootComponent() {
131 fruit::Injector<XAnnot> injector(getRootComponent);
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>();
168 @pytest.mark.parametrize('XAnnot,YAnnot', [
172 def test_bind_interface_to_constant_nonconst_required_const_bound_error(XAnnot, YAnnot):
185 fruit::Component<XAnnot> getComponent() {
188 .bind<XAnnot, 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>();
222 @pytest.mark.parametrize('XAnnot,intAnnot', [
226 def test_error_not_base(XAnnot, intAnnot):
232 .bind<XAnnot, intAnnot>();
243 @pytest.mark.parametrize('XAnnot', [
247 def test_error_bound_to_itself(XAnnot):
253 .bind<XAnnot, XAnnot>();