|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| LinkedProviderBindingImpl | Line # 26 | 4 | 3 | 2 | 71.4% |
0.71428573
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (43) | |||
| Result | |||
|
0.71428573
|
com.google.inject.spi.SpiBindingsTest.testToProviderKeyBinding
com.google.inject.spi.SpiBindingsTest.testToProviderKeyBinding
|
1 PASS | |
|
0.42857143
|
com.google.inject.BindingTest.testScopeIsAppliedToKeyNotTarget
com.google.inject.BindingTest.testScopeIsAppliedToKeyNotTarget
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.SuccessTest.test
com.google.inject.BinderTestSuite.SuccessTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.UserExceptionsTest.test
com.google.inject.BinderTestSuite.UserExceptionsTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.ProvisionExceptionTest.testProviderKeyBindings
com.google.inject.ProvisionExceptionTest.testProviderKeyBindings
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.SuccessTest.test
com.google.inject.BinderTestSuite.SuccessTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.ScopesTest.testScopingAnnotationsOnAbstractTypeViaProvidedBy
com.google.inject.ScopesTest.testScopingAnnotationsOnAbstractTypeViaProvidedBy
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.SuccessTest.test
com.google.inject.BinderTestSuite.SuccessTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.UserExceptionsTest.test
com.google.inject.BinderTestSuite.UserExceptionsTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.SuccessTest.test
com.google.inject.BinderTestSuite.SuccessTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.ImplicitBindingTest.testDefaultProvider
com.google.inject.ImplicitBindingTest.testDefaultProvider
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.UserExceptionsTest.test
com.google.inject.BinderTestSuite.UserExceptionsTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.SuccessTest.test
com.google.inject.BinderTestSuite.SuccessTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.ScopesTest.testSingletons
com.google.inject.ScopesTest.testSingletons
|
1 PASS | |
|
0.42857143
|
com.google.inject.spi.SpiBindingsTest.testScopes
com.google.inject.spi.SpiBindingsTest.testScopes
|
1 PASS | |
|
0.42857143
|
com.google.inject.OptionalBindingTest.testPartialInjectorToProvider
com.google.inject.OptionalBindingTest.testPartialInjectorToProvider
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.SuccessTest.test
com.google.inject.BinderTestSuite.SuccessTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.SuccessTest.test
com.google.inject.BinderTestSuite.SuccessTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.SuccessTest.test
com.google.inject.BinderTestSuite.SuccessTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.UserExceptionsTest.test
com.google.inject.BinderTestSuite.UserExceptionsTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.SuccessTest.test
com.google.inject.BinderTestSuite.SuccessTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.UserExceptionsTest.test
com.google.inject.BinderTestSuite.UserExceptionsTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.UserExceptionsTest.test
com.google.inject.BinderTestSuite.UserExceptionsTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.UserExceptionsTest.test
com.google.inject.BinderTestSuite.UserExceptionsTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.ScopesTest.testSingletonsInDevelopmentStage
com.google.inject.ScopesTest.testSingletonsInDevelopmentStage
|
1 PASS | |
|
0.42857143
|
com.google.inject.BoundProviderTest.testFooProvider
com.google.inject.BoundProviderTest.testFooProvider
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.SuccessTest.test
com.google.inject.BinderTestSuite.SuccessTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.ScopesTest.testSingletonsInProductionStage
com.google.inject.ScopesTest.testSingletonsInProductionStage
|
1 PASS | |
|
0.42857143
|
com.google.inject.ProvisionExceptionTest.testProvisionExceptionsAreWrappedForBindToProviderType
com.google.inject.ProvisionExceptionTest.testProvisionExceptionsAreWrappedForBindToProviderType
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.UserExceptionsTest.test
com.google.inject.BinderTestSuite.UserExceptionsTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.UserExceptionsTest.test
com.google.inject.BinderTestSuite.UserExceptionsTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.UserExceptionsTest.test
com.google.inject.BinderTestSuite.UserExceptionsTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.SuccessTest.test
com.google.inject.BinderTestSuite.SuccessTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.UserExceptionsTest.test
com.google.inject.BinderTestSuite.UserExceptionsTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.OptionalBindingTest.testEverythingInjectorToProvider
com.google.inject.OptionalBindingTest.testEverythingInjectorToProvider
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTest.testUntargettedBinding
com.google.inject.BinderTest.testUntargettedBinding
|
1 PASS | |
|
0.42857143
|
com.google.inject.OptionalBindingTest.testNothingInjectorToProvider
com.google.inject.OptionalBindingTest.testNothingInjectorToProvider
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.SuccessTest.test
com.google.inject.BinderTestSuite.SuccessTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.UserExceptionsTest.test
com.google.inject.BinderTestSuite.UserExceptionsTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.SuccessTest.test
com.google.inject.BinderTestSuite.SuccessTest.test
|
1 PASS | |
|
0.42857143
|
com.google.inject.InjectorTest.testSubtypeNotProvided
com.google.inject.InjectorTest.testSubtypeNotProvided
|
1 PASS | |
|
0.42857143
|
com.google.inject.BoundProviderTest.testSingletonFooProvider
com.google.inject.BoundProviderTest.testSingletonFooProvider
|
1 PASS | |
|
0.42857143
|
com.google.inject.BinderTestSuite.UserExceptionsTest.test
com.google.inject.BinderTestSuite.UserExceptionsTest.test
|
1 PASS | |
| 1 | /* | |
| 2 | * Copyright (C) 2007 Google Inc. | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | ||
| 17 | package com.google.inject; | |
| 18 | ||
| 19 | import com.google.inject.internal.ToStringBuilder; | |
| 20 | import com.google.inject.spi.BindingTargetVisitor; | |
| 21 | ||
| 22 | /** | |
| 23 | * | |
| 24 | * | |
| 25 | */ | |
| 26 | class LinkedProviderBindingImpl<T> extends BindingImpl<T> { | |
| 27 | ||
| 28 | final Key<? extends Provider<? extends T>> providerKey; | |
| 29 | ||
| 30 | 178 |
LinkedProviderBindingImpl(InjectorImpl injector, Key<T> key, Object source, |
| 31 | InternalFactory<? extends T> internalFactory, Scope scope, | |
| 32 | Key<? extends Provider<? extends T>> providerKey, | |
| 33 | LoadStrategy loadStrategy) { | |
| 34 | 178 | super(injector, key, source, internalFactory, scope, loadStrategy); |
| 35 | 178 | this.providerKey = providerKey; |
| 36 | } | |
| 37 | ||
| 38 | 1 |
public <V> V acceptTargetVisitor(BindingTargetVisitor<? super T, V> visitor) { |
| 39 | 1 | return visitor.visitProviderKey(providerKey); |
| 40 | } | |
| 41 | ||
| 42 | 0 |
@Override public String toString() { |
| 43 | 0 | return new ToStringBuilder(Binding.class) |
| 44 | .add("key", key) | |
| 45 | .add("provider", providerKey) | |
| 46 | .add("scope", scope) | |
| 47 | .add("source", source) | |
| 48 | .toString(); | |
| 49 | } | |
| 50 | } | |
|
|||||||||||