Home | History | Annotate | Download | only in tests

Lines Matching refs:YAnnot

31 @pytest.mark.parametrize('XAnnot,X_ANNOT,YAnnot', [
35 def test_success_normalized_component_provides_unused(XAnnot, X_ANNOT, YAnnot):
43 fruit::Component<fruit::Required<XAnnot>, YAnnot> getComponent() {
53 fruit::NormalizedComponent<fruit::Required<XAnnot>, YAnnot> normalizedComponent(getComponent);
66 @pytest.mark.parametrize('XAnnot,X_ANNOT,YAnnot', [
70 def test_success(XAnnot, X_ANNOT, YAnnot):
78 fruit::Component<fruit::Required<XAnnot>, YAnnot> getComponent() {
88 fruit::NormalizedComponent<fruit::Required<XAnnot>, YAnnot> normalizedComponent(getComponent);
92 fruit::Injector<YAnnot> injector(normalizedComponent, getXComponent, &x);
93 injector.get<YAnnot>();
101 @pytest.mark.parametrize('XAnnot,X_ANNOT,YAnnot', [
105 def test_success_inline_component(XAnnot, X_ANNOT, YAnnot):
113 fruit::Component<fruit::Required<XAnnot>, YAnnot> getComponent() {
123 fruit::NormalizedComponent<fruit::Required<XAnnot>, YAnnot> normalizedComponent(getComponent);
127 fruit::Injector<YAnnot> injector(normalizedComponent, getAdditionalComponent, &x);
128 injector.get<YAnnot>();
183 @pytest.mark.parametrize('XAnnot,YAnnot', [
187 def test_injector_from_normalized_component_nonconst_requirements_provided_as_const_error(XAnnot, YAnnot):
194 void f(fruit::NormalizedComponent<fruit::Required<XAnnot>, YAnnot> normalizedComponent) {
195 fruit::Injector<YAnnot> injector(normalizedComponent, getXComponent);