Home | History | Annotate | Download | only in tests

Lines Matching refs:XAnnot

47     '.registerConstructor<XAnnot()>()')
53 .bind<XAnnot, YAnnot>()
61 .bind<XAnnot, Y2Annot>()
66 fruit::Component<XAnnot> getParentComponent() {
68 .registerConstructor<XAnnot()>();
74 fruit::Component<XAnnot> getParentComponent2() {
76 .registerConstructor<XAnnot()>();
82 fruit::Component<const XAnnot> getParentComponent() {
84 .registerConstructor<XAnnot()>();
90 fruit::Component<const XAnnot> getParentComponent2() {
92 .registerConstructor<XAnnot()>();
100 '.bindInstance<XAnnot, X>(x)')
105 '.bindInstance<XAnnot, X>(x2)')
133 @pytest.mark.parametrize('XAnnot,YAnnot,Y2Annot', [
138 binding1_preparation, binding1, binding2_preparation, binding2, XAnnot, YAnnot, Y2Annot):
145 fruit::Component<XAnnot> getComponent() {
152 'DuplicateTypesInComponentError<XAnnot>',
194 @pytest.mark.parametrize('XAnnot,YAnnot,Y2Annot', [
198 def test_clash_with_binding(binding1_preparation, binding1, binding2_preparation, binding2, XAnnot, YAnnot, Y2Annot):
205 fruit::Component<XAnnot> getComponent() {
213 'TypeAlreadyBoundError<XAnnot>',
363 @pytest.mark.parametrize('NormalizedComponentXAnnot,ComponentXAnnot,XAnnot', [
373 def test_during_component_merge(NormalizedComponentXAnnot, ComponentXAnnot, XAnnot):
379 .registerConstructor<XAnnot()>();
384 .registerConstructor<XAnnot()>();
394 'DuplicateTypesInComponentError<XAnnot>',
425 @pytest.mark.parametrize('XAnnot,XAnnotRegex', [
429 def test_bind_instance_and_bind_instance_runtime(XAnnot, XAnnotRegex):
436 .bindInstance<XAnnot, X>(*(new X()));
439 fruit::Component<XAnnot> getComponentForInstance() {
443 .bindInstance<XAnnot, X>(*(new X()));
447 fruit::Injector<XAnnot> injector(getComponentForInstance);
448 injector.get<XAnnot>();
457 @pytest.mark.parametrize('XAnnot,XAnnotRegex', [
461 XAnnot, XAnnotRegex):
467 .bindInstance<XAnnot, X>(*x);
470 fruit::Component<XAnnot> getComponentForInstance(X* x) {
473 .registerConstructor<XAnnot()>();
478 fruit::Injector<XAnnot> injector(getComponentForInstance, &x);
479 injector.get<XAnnot>();
488 @pytest.mark.parametrize('XAnnot', [
492 def test_during_component_merge_consistent_ok(XAnnot):
498 fruit::Component<XAnnot> getComponent() {
509 fruit::Injector<XAnnot> injector(normalizedComponent, getComponent);
512 injector.get<XAnnot>();