/external/dagger2/javatests/dagger/internal/codegen/ |
D | MapMultibindingValidationTest.java | 56 Compilation compilation = in duplicateMapKeys() local 64 assertThat(compilation).failed(); in duplicateMapKeys() 65 assertThat(compilation) in duplicateMapKeys() 69 assertThat(compilation).hadErrorContaining("provideObjectForAKey()"); in duplicateMapKeys() 70 assertThat(compilation).hadErrorContaining("provideObjectForAKeyAgain()"); in duplicateMapKeys() 71 assertThat(compilation).hadErrorCount(1); in duplicateMapKeys() 73 compilation = in duplicateMapKeys() 75 assertThat(compilation).failed(); in duplicateMapKeys() 76 assertThat(compilation) in duplicateMapKeys() 82 assertThat(compilation).hadErrorContaining("provideObjectForAKey()"); in duplicateMapKeys() [all …]
|
D | FullBindingGraphValidationTest.java | 57 Compilation compilation = daggerCompiler().compile(MODULE_WITH_ERRORS); in moduleWithErrors_validationTypeNone() local 58 assertThat(compilation).succeededWithoutWarnings(); in moduleWithErrors_validationTypeNone() 63 Compilation compilation = in moduleWithErrors_validationTypeError() local 68 assertThat(compilation).failed(); in moduleWithErrors_validationTypeError() 70 assertThat(compilation) in moduleWithErrors_validationTypeError() 75 assertThat(compilation).hadErrorCount(1); in moduleWithErrors_validationTypeError() 80 Compilation compilation = in moduleWithErrors_validationTypeWarning() local 85 assertThat(compilation).succeeded(); in moduleWithErrors_validationTypeWarning() 87 assertThat(compilation) in moduleWithErrors_validationTypeWarning() 92 assertThat(compilation).hadWarningCount(1); in moduleWithErrors_validationTypeWarning() [all …]
|
D | AheadOfTimeSubcomponentsTest.java | 74 Compilation compilation = compile(filesToCompile.build()); in missingBindings_fromComponentMethod() local 75 assertThat(compilation).succeededWithoutWarnings(); in missingBindings_fromComponentMethod() 76 assertThat(compilation) in missingBindings_fromComponentMethod() 125 compilation = compile(filesToCompile.build()); in missingBindings_fromComponentMethod() 126 assertThat(compilation).succeededWithoutWarnings(); in missingBindings_fromComponentMethod() 127 assertThat(compilation) in missingBindings_fromComponentMethod() 178 Compilation compilation = compile(filesToCompile.build()); in missingBindings_dependsOnBindingWithMatchingComponentMethod() local 179 assertThat(compilation).succeededWithoutWarnings(); in missingBindings_dependsOnBindingWithMatchingComponentMethod() 180 assertThat(compilation) in missingBindings_dependsOnBindingWithMatchingComponentMethod() 229 Compilation compilation = compile(filesToCompile.build()); in missingBindings_dependsOnMissingBinding() local [all …]
|
D | AheadOfTimeSubcomponentsMultibindingsTest.java | 92 Compilation compilation = compile(filesToCompile.build()); in setMultibindings_contributionsInLeaf() local 93 assertThat(compilation).succeededWithoutWarnings(); in setMultibindings_contributionsInLeaf() 94 assertThat(compilation) in setMultibindings_contributionsInLeaf() 132 Compilation compilation = compile(filesToCompile.build()); in setMultibindings_contributionsInAncestorOnly() local 133 assertThat(compilation).succeededWithoutWarnings(); in setMultibindings_contributionsInAncestorOnly() 134 assertThat(compilation) in setMultibindings_contributionsInAncestorOnly() 193 compilation = compile(filesToCompile.build()); in setMultibindings_contributionsInAncestorOnly() 194 assertThat(compilation).succeededWithoutWarnings(); in setMultibindings_contributionsInAncestorOnly() 195 assertThat(compilation) in setMultibindings_contributionsInAncestorOnly() 260 Compilation compilation = compile(filesToCompile.build()); in setMultibindings_contributionsInLeafAndAncestor() local [all …]
|
D | SubcomponentCreatorValidationTest.java | 77 Compilation compilation = compile(componentFile, childComponentFile); in testRefSubcomponentAndSubCreatorFails() local 78 assertThat(compilation).failed(); in testRefSubcomponentAndSubCreatorFails() 79 assertThat(compilation) in testRefSubcomponentAndSubCreatorFails() 113 Compilation compilation = compile(componentFile, childComponentFile); in testRefSubCreatorTwiceFails() local 114 assertThat(compilation).failed(); in testRefSubCreatorTwiceFails() 115 assertThat(compilation) in testRefSubCreatorTwiceFails() 152 Compilation compilation = compile(componentFile, childComponentFile); in testMoreThanOneCreatorFails() local 153 assertThat(compilation).failed(); in testMoreThanOneCreatorFails() 154 assertThat(compilation) in testMoreThanOneCreatorFails() 191 Compilation compilation = compile(componentFile, childComponentFile); in testMoreThanOneCreatorFails_differentTypes() local [all …]
|
D | InjectConstructorFactoryGeneratorTest.java | 76 Compilation compilation = daggerCompiler().compile(file); in injectOnPrivateConstructor() local 77 assertThat(compilation).failed(); in injectOnPrivateConstructor() 78 assertThat(compilation) in injectOnPrivateConstructor() 95 Compilation compilation = daggerCompiler().compile(file); in injectConstructorOnInnerClass() local 96 assertThat(compilation).failed(); in injectConstructorOnInnerClass() 97 assertThat(compilation) in injectConstructorOnInnerClass() 114 Compilation compilation = daggerCompiler().compile(file); in injectConstructorOnAbstractClass() local 115 assertThat(compilation).failed(); in injectConstructorOnAbstractClass() 116 assertThat(compilation) in injectConstructorOnAbstractClass() 501 Compilation compilation = daggerCompiler().compile(file); in multipleInjectConstructors() local [all …]
|
D | ComponentCreatorTest.java | 107 Compilation compilation = compile(injectableTypeFile, componentFile); in testEmptyCreator() local 108 assertThat(compilation).succeeded(); in testEmptyCreator() 109 assertThat(compilation) in testEmptyCreator() 180 Compilation compilation = compile(module, componentFile); in testCanInstantiateModulesUserCannotSet() local 181 assertThat(compilation).succeeded(); in testCanInstantiateModulesUserCannotSet() 182 assertThat(compilation) in testCanInstantiateModulesUserCannotSet() 209 Compilation compilation = compile(componentFile); in testMoreThanOneCreatorOfSameTypeFails() local 210 assertThat(compilation).failed(); in testMoreThanOneCreatorOfSameTypeFails() 211 assertThat(compilation) in testMoreThanOneCreatorOfSameTypeFails() 241 Compilation compilation = compile(componentFile); in testBothBuilderAndFactoryFails() local [all …]
|
D | ComponentValidationTest.java | 41 Compilation compilation = daggerCompiler().compile(componentFile); in componentOnConcreteClass() local 42 assertThat(compilation).failed(); in componentOnConcreteClass() 43 assertThat(compilation).hadErrorContaining("interface"); in componentOnConcreteClass() 56 Compilation compilation = daggerCompiler().compile(componentFile); in componentOnEnum() local 57 assertThat(compilation).failed(); in componentOnEnum() 58 assertThat(compilation).hadErrorContaining("interface"); in componentOnEnum() 69 Compilation compilation = daggerCompiler().compile(componentFile); in componentOnAnnotation() local 70 assertThat(compilation).failed(); in componentOnAnnotation() 71 assertThat(compilation).hadErrorContaining("interface"); in componentOnAnnotation() 82 Compilation compilation = daggerCompiler().compile(componentFile); in nonModuleModule() local [all …]
|
D | MissingBindingValidationTest.java | 57 Compilation compilation = daggerCompiler().compile(component, injectable, nonInjectable); in dependOnInterface() local 58 assertThat(compilation).failed(); in dependOnInterface() 59 assertThat(compilation) in dependOnInterface() 82 Compilation compilation = daggerCompiler().compile(component); in entryPointDependsOnInterface() local 83 assertThat(compilation).failed(); in entryPointDependsOnInterface() 84 assertThat(compilation) in entryPointDependsOnInterface() 111 Compilation compilation = daggerCompiler().compile(component); in entryPointDependsOnQualifiedInterface() local 112 assertThat(compilation).failed(); in entryPointDependsOnQualifiedInterface() 113 assertThat(compilation) in entryPointDependsOnQualifiedInterface() 141 Compilation compilation = daggerCompiler().compile(component); in constructorInjectionWithoutAnnotation() local [all …]
|
D | DependencyCycleValidationTest.java | 71 Compilation compilation = daggerCompiler().compile(SIMPLE_CYCLIC_DEPENDENCY); in cyclicDependency() local 72 assertThat(compilation).failed(); in cyclicDependency() 74 assertThat(compilation) in cyclicDependency() 89 assertThat(compilation).hadErrorCount(1); in cyclicDependency() 107 Compilation compilation = in cyclicDependencyWithModuleBindingValidation() local 111 assertThat(compilation).failed(); in cyclicDependencyWithModuleBindingValidation() 113 assertThat(compilation) in cyclicDependencyWithModuleBindingValidation() 118 assertThat(compilation) in cyclicDependencyWithModuleBindingValidation() 123 assertThat(compilation).hadErrorCount(2); in cyclicDependencyWithModuleBindingValidation() 160 Compilation compilation = daggerCompiler().compile(component); in cyclicDependencyNotIncludingEntryPoint() local [all …]
|
D | DuplicateBindingsValidationTest.java | 84 Compilation compilation = in duplicateExplicitBindings_ProvidesAndComponentProvision() local 86 assertThat(compilation).failed(); in duplicateExplicitBindings_ProvidesAndComponentProvision() 87 assertThat(compilation) in duplicateExplicitBindings_ProvidesAndComponentProvision() 136 Compilation compilation = in duplicateExplicitBindings_TwoProvidesMethods() local 138 assertThat(compilation).failed(); in duplicateExplicitBindings_TwoProvidesMethods() 139 assertThat(compilation) in duplicateExplicitBindings_TwoProvidesMethods() 149 assertThat(compilation) in duplicateExplicitBindings_TwoProvidesMethods() 160 assertThat(compilation).hadErrorCount(fullBindingGraphValidation ? 2 : 1); in duplicateExplicitBindings_TwoProvidesMethods() 202 Compilation compilation = in duplicateExplicitBindings_ProvidesVsBinds() local 204 assertThat(compilation).failed(); in duplicateExplicitBindings_ProvidesVsBinds() [all …]
|
D | ProductionGraphValidationTest.java | 76 Compilation compilation = daggerCompiler().compile(EXECUTOR_MODULE, module, component); in componentWithUnprovidedInput() local 77 assertThat(compilation).failed(); in componentWithUnprovidedInput() 78 assertThat(compilation) in componentWithUnprovidedInput() 102 Compilation compilation = daggerCompiler().compile(EXECUTOR_MODULE, component); in componentProductionWithNoDependencyChain() local 103 assertThat(compilation).failed(); in componentProductionWithNoDependencyChain() 104 assertThat(compilation) in componentProductionWithNoDependencyChain() 148 Compilation compilation = daggerCompiler().compile(EXECUTOR_MODULE, component); in provisionDependsOnProduction() local 149 assertThat(compilation).failed(); in provisionDependsOnProduction() 150 assertThat(compilation) in provisionDependsOnProduction() 155 compilation = in provisionDependsOnProduction() [all …]
|
D | ComponentProcessorTest.java | 109 Compilation compilation = in doubleBindingFromResolvedModules() local 113 assertThat(compilation).failed(); in doubleBindingFromResolvedModules() 114 assertThat(compilation) in doubleBindingFromResolvedModules() 116 assertThat(compilation) in doubleBindingFromResolvedModules() 118 assertThat(compilation) in doubleBindingFromResolvedModules() 144 Compilation compilation = in privateNestedClassWithWarningThatIsAnErrorInComponent() local 149 assertThat(compilation).failed(); in privateNestedClassWithWarningThatIsAnErrorInComponent() 150 assertThat(compilation) in privateNestedClassWithWarningThatIsAnErrorInComponent() 263 Compilation compilation = in simpleComponent() local 267 assertThat(compilation).succeeded(); in simpleComponent() [all …]
|
D | MembersInjectionValidationTest.java | 50 Compilation compilation = daggerCompiler().compile(injectsUnboundedType); in membersInjectDependsOnUnboundedType() local 51 assertThat(compilation).failed(); in membersInjectDependsOnUnboundedType() 52 assertThat(compilation) in membersInjectDependsOnUnboundedType() 73 Compilation compilation = daggerCompiler().compile(component); in membersInjectPrimitive() local 74 assertThat(compilation).failed(); in membersInjectPrimitive() 75 assertThat(compilation) in membersInjectPrimitive() 94 Compilation compilation = daggerCompiler().compile(component); in membersInjectArray() local 95 assertThat(compilation).failed(); in membersInjectArray() 96 assertThat(compilation) in membersInjectArray() 116 Compilation compilation = daggerCompiler().compile(component); in membersInjectorOfArray() local [all …]
|
D | SubcomponentValidationTest.java | 85 Compilation compilation = in factoryMethod_missingModulesWithParameters() local 89 assertThat(compilation).failed(); in factoryMethod_missingModulesWithParameters() 90 assertThat(compilation) in factoryMethod_missingModulesWithParameters() 154 Compilation compilation = in factoryMethod_grandchild() local 158 assertThat(compilation).failed(); in factoryMethod_grandchild() 159 assertThat(compilation) in factoryMethod_grandchild() 186 Compilation compilation = in factoryMethod_nonModuleParameter() local 190 assertThat(compilation).failed(); in factoryMethod_nonModuleParameter() 191 assertThat(compilation) in factoryMethod_nonModuleParameter() 223 Compilation compilation = in factoryMethod_duplicateParameter() local [all …]
|
D | ScopingValidationTest.java | 74 Compilation compilation = daggerCompiler().compile(componentFile, typeFile, moduleFile); in componentWithoutScopeIncludesScopedBindings_Fail() local 75 assertThat(compilation).failed(); in componentWithoutScopeIncludesScopedBindings_Fail() 76 assertThat(compilation) in componentWithoutScopeIncludesScopedBindings_Fail() 154 Compilation compilation = in bindsWithChildScope_inParentModule_notAllowed() local 156 assertThat(compilation).failed(); in bindsWithChildScope_inParentModule_notAllowed() 157 assertThat(compilation) in bindsWithChildScope_inParentModule_notAllowed() 228 Compilation compilation = in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() local 231 assertThat(compilation).failed(); in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() 232 assertThat(compilation) in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() 244 compilation = in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() [all …]
|
D | ComponentBuilderTest.java | 110 Compilation compilation = in testUsesBuildAndSetterNames() local 112 assertThat(compilation).succeeded(); in testUsesBuildAndSetterNames() 113 assertThat(compilation) in testUsesBuildAndSetterNames() 137 Compilation compilation = in testSetterMethodWithMoreThanOneArgFails() local 139 assertThat(compilation).failed(); in testSetterMethodWithMoreThanOneArgFails() 140 assertThat(compilation) in testSetterMethodWithMoreThanOneArgFails() 144 assertThat(compilation) in testSetterMethodWithMoreThanOneArgFails() 170 Compilation compilation = in testInheritedSetterMethodWithMoreThanOneArgFails() local 172 assertThat(compilation).failed(); in testInheritedSetterMethodWithMoreThanOneArgFails() 173 assertThat(compilation) in testInheritedSetterMethodWithMoreThanOneArgFails() [all …]
|
D | ModuleFactoryGeneratorTest.java | 130 Compilation compilation = daggerCompiler().compile(moduleFile); in modulesWithTypeParamsMustBeAbstract() local 131 assertThat(compilation).failed(); in modulesWithTypeParamsMustBeAbstract() 132 assertThat(compilation) in modulesWithTypeParamsMustBeAbstract() 203 Compilation compilation = daggerCompiler().compile(module); in validatesIncludedModules() local 204 assertThat(compilation).failed(); in validatesIncludedModules() 205 assertThat(compilation) in validatesIncludedModules() 622 Compilation compilation = daggerCompiler().compile(moduleFile); in multipleProvidesMethodsWithSameName() local 623 assertThat(compilation).failed(); in multipleProvidesMethodsWithSameName() 624 assertThat(compilation) in multipleProvidesMethodsWithSameName() 629 assertThat(compilation) in multipleProvidesMethodsWithSameName() [all …]
|
D | BindsInstanceValidationTest.java | 45 Compilation compilation = daggerCompiler().compile(testModule); in bindsInstanceInModule() local 46 assertThat(compilation).failed(); in bindsInstanceInModule() 47 assertThat(compilation) in bindsInstanceInModule() 66 Compilation compilation = daggerCompiler().compile(testComponent); in bindsInstanceInComponent() local 67 assertThat(compilation).failed(); in bindsInstanceInComponent() 68 assertThat(compilation) in bindsInstanceInComponent() 87 Compilation compilation = daggerCompiler().compile(notAbstract); in bindsInstanceNotAbstract() local 88 assertThat(compilation).failed(); in bindsInstanceNotAbstract() 89 assertThat(compilation) in bindsInstanceNotAbstract() 107 Compilation compilation = daggerCompiler().compile(notAbstract); in bindsInstanceNoParameters() local [all …]
|
D | ProductionComponentProcessorTest.java | 56 Compilation compilation = daggerCompiler().compile(componentFile); in componentOnConcreteClass() local 57 assertThat(compilation).failed(); in componentOnConcreteClass() 58 assertThat(compilation).hadErrorContaining("interface"); in componentOnConcreteClass() 71 Compilation compilation = in componentOnEnum() local 73 assertThat(compilation).failed(); in componentOnEnum() 74 assertThat(compilation).hadErrorContaining("interface"); in componentOnEnum() 85 Compilation compilation = in componentOnAnnotation() local 87 assertThat(compilation).failed(); in componentOnAnnotation() 88 assertThat(compilation).hadErrorContaining("interface"); in componentOnAnnotation() 99 Compilation compilation = in nonModuleModule() local [all …]
|
D | ModuleValidationTest.java | 87 Compilation compilation = daggerCompiler().compile(module, notASubcomponent); in moduleSubcomponents_notASubcomponent() local 88 assertThat(compilation).failed(); in moduleSubcomponents_notASubcomponent() 89 assertThat(compilation) in moduleSubcomponents_notASubcomponent() 121 Compilation compilation = daggerCompiler().compile(module, subcomponent); in moduleSubcomponents_listsSubcomponentBuilder() local 122 assertThat(compilation).failed(); in moduleSubcomponents_listsSubcomponentBuilder() 123 assertThat(compilation) in moduleSubcomponents_listsSubcomponentBuilder() 155 Compilation compilation = daggerCompiler().compile(module, subcomponent); in moduleSubcomponents_listsSubcomponentFactory() local 156 assertThat(compilation).failed(); in moduleSubcomponents_listsSubcomponentFactory() 157 assertThat(compilation) in moduleSubcomponents_listsSubcomponentFactory() 189 Compilation compilation = daggerCompiler().compile(module, subcomponent); in moduleSubcomponents_listsProductionSubcomponentBuilder() local [all …]
|
D | SubcomponentBuilderValidationTest.java | 54 Compilation compilation = daggerCompiler().compile(childComponentFile); in testMoreThanOneArgFails() local 55 assertThat(compilation).failed(); in testMoreThanOneArgFails() 56 assertThat(compilation) in testMoreThanOneArgFails() 60 assertThat(compilation) in testMoreThanOneArgFails() 83 Compilation compilation = daggerCompiler().compile(childComponentFile); in testInheritedMoreThanOneArgFails() local 84 assertThat(compilation).failed(); in testInheritedMoreThanOneArgFails() 85 assertThat(compilation) in testInheritedMoreThanOneArgFails() 109 Compilation compilation = daggerCompiler().compile(childComponentFile); in testSetterReturningNonVoidOrBuilderFails() local 110 assertThat(compilation).failed(); in testSetterReturningNonVoidOrBuilderFails() 111 assertThat(compilation) in testSetterReturningNonVoidOrBuilderFails() [all …]
|
/external/OpenCL-CTS/test_conformance/ |
D | opencl_conformance_tests_21_full_spirv.csv | 13 Basic,basic/test_basic --compilation-mode spir-v --compilation-cache-path . 14 API,api/test_api --compilation-mode spir-v --compilation-cache-path . 15 Compiler,compiler/test_compiler --compilation-mode spir-v --compilation-cache-path . 20 Common Functions,commonfns/test_commonfns --compilation-mode spir-v --compilation-cache-path . 21 Geometric Functions,geometrics/test_geometrics --compilation-mode spir-v --compilation-cache-path . 22 Relationals,relationals/test_relationals --compilation-mode spir-v --compilation-cache-path . 27 …mensions,thread_dimensions/test_thread_dimensions full* --compilation-mode spir-v --compilation-ca… 28 …e Device/Context,multiple_device_context/test_multiples --compilation-mode spir-v --compilation-ca… 29 Atomics,atomics/test_atomics --compilation-mode spir-v --compilation-cache-path . 30 Profiling,profiling/test_profiling --compilation-mode spir-v --compilation-cache-path . [all …]
|
/external/dagger2/javatests/dagger/android/processor/ |
D | AndroidMapKeyValidatorTest.java | 84 Compilation compilation = compile(module, FOO_ACTIVITY); in rawFactoryType() local 85 assertThat(compilation).failed(); in rawFactoryType() 86 assertThat(compilation) in rawFactoryType() 100 Compilation compilation = compile(module, FOO_ACTIVITY); in rawBuilderType() local 101 assertThat(compilation).failed(); in rawBuilderType() 102 assertThat(compilation) in rawBuilderType() 117 Compilation compilation = compile(module, FOO_ACTIVITY); in bindsToBuilderNotFactory() local 118 assertThat(compilation).failed(); in bindsToBuilderNotFactory() 119 assertThat(compilation) in bindsToBuilderNotFactory() 135 Compilation compilation = compile(module, FOO_ACTIVITY); in providesToBuilderNotFactory() local [all …]
|
D | ContributesAndroidInjectorTest.java | 58 Compilation compilation = compile(module, TEST_ACTIVITY); in notAbstract() local 59 assertThat(compilation).failed(); in notAbstract() 60 assertThat(compilation) in notAbstract() 93 Compilation compilation = compile(module, TEST_ACTIVITY, otherActivity); in hasParameters() local 94 assertThat(compilation).failed(); in hasParameters() 95 assertThat(compilation) in hasParameters() 99 assertThat(compilation) in hasParameters() 119 Compilation compilation = compile(randomFile, TEST_ACTIVITY); in notInAModule() local 120 assertThat(compilation).failed(); in notInAModule() 121 assertThat(compilation) in notInAModule() [all …]
|