Home
last modified time | relevance | path

Searched refs:stringType (Results 1 – 25 of 36) sorted by relevance

12

/external/jazzer-api/src/test/java/com/code_intelligence/jazzer/mutation/support/
DHolderTest.java56 AnnotatedType stringType = listType.getAnnotatedActualTypeArguments()[0]; in testTypeHolder_annotatedType() local
57 assertThat(stringType.getType()).isEqualTo(String.class); in testTypeHolder_annotatedType()
58 assertThat(stringType.getAnnotations()).hasLength(1); in testTypeHolder_annotatedType()
59 assertThat(stringType.getAnnotations()[0]).isInstanceOf(Bar.class); in testTypeHolder_annotatedType()
88 AnnotatedType stringType = listType.getAnnotatedActualTypeArguments()[0]; in testParameterHolder_annotatedType() local
89 assertThat(stringType.getType()).isEqualTo(String.class); in testParameterHolder_annotatedType()
90 assertThat(stringType.getAnnotations()).hasLength(1); in testParameterHolder_annotatedType()
91 assertThat(stringType.getAnnotations()[0]).isInstanceOf(Bar.class); in testParameterHolder_annotatedType()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/
DSameAsBoundTest.java19 …private ResolvedType stringType = new ReferenceTypeImpl(new ReflectionTypeSolver().solveType(Strin… field in SameAsBoundTest
25 Bound bound1 = new SameAsBound(inferenceVariable, stringType); in recognizeInstantiation()
26 Bound bound2 = new SameAsBound(stringType, inferenceVariable); in recognizeInstantiation()
28 …assertEquals(Optional.of(new Instantiation(inferenceVariable, stringType)), bound1.isAnInstantiati… in recognizeInstantiation()
29 …assertEquals(Optional.of(new Instantiation(inferenceVariable, stringType)), bound2.isAnInstantiati… in recognizeInstantiation()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DExprResolutionTest.java38 private ResolvedType stringType; field in ExprResolutionTest
43 stringType = new ReferenceTypeImpl(ts.solveType(String.class.getCanonicalName()), ts); in setup()
339 assertEquals(stringType, JavaParserFacade.get(ts).getType(bExprs.get(0))); in typeOfPlusExpressionsDoubleAndString()
355 assertEquals(stringType, JavaParserFacade.get(ts).getType(bExprs.get(0))); in typeOfPlusExpressionsIntAndString()
371 assertEquals(stringType, JavaParserFacade.get(ts).getType(bExprs.get(0))); in typeOfPlusExpressionsCharAndString()
387 assertEquals(stringType, JavaParserFacade.get(ts).getType(bExprs.get(0))); in typeOfPlusExpressionsStringAndDouble()
403 assertEquals(stringType, JavaParserFacade.get(ts).getType(bExprs.get(0))); in typeOfPlusExpressionsStringAndInt()
419 assertEquals(stringType, JavaParserFacade.get(ts).getType(bExprs.get(0))); in typeOfPlusExpressionsStringAndChar()
DMethodsResolutionLogicTest.java54 …ResolvedReferenceType stringType = (ResolvedReferenceType) ReflectionFactory.typeUsageFor(String.c… in compatibilityShouldConsiderAlsoTypeVariablesNegative() local
57 …ype.replaceTypeVariables(rawClassType.getTypeDeclaration().getTypeParameters().get(0), stringType); in compatibilityShouldConsiderAlsoTypeVariablesNegative()
/external/guice/core/test/com/google/inject/internal/
DMapBinderTest.java102 private final TypeLiteral<String> stringType = TypeLiteral.get(String.class); field in MapBinderTest
215 stringType, in testMapBinderAggregatesMultipleModules() local
216 stringType, in testMapBinderAggregatesMultipleModules() local
254 stringType, in testMapBinderAggregationForAnnotationInstance()
255 stringType, in testMapBinderAggregationForAnnotationInstance()
290 stringType, in testMapBinderAggregationForAnnotationType()
291 stringType, in testMapBinderAggregationForAnnotationType()
332 stringType, in testMapBinderWithMultipleAnnotationValueSets()
333 stringType, in testMapBinderWithMultipleAnnotationValueSets()
343 stringType, in testMapBinderWithMultipleAnnotationValueSets()
[all …]
DMultibinderTest.java95 final TypeLiteral<String> stringType = TypeLiteral.get(String.class); field in MultibinderTest
131 stringType, in testMultibinderAggregatesMultipleModules()
165 stringType, in testMultibinderAggregationForAnnotationInstance()
197 stringType, in testMultibinderAggregationForAnnotationType()
236 stringType, in testMultibinderWithMultipleAnnotationValueSets()
245 deSetKey, stringType, setOf(module), BOTH, false, 1, instance("D"), instance("E")); in testMultibinderWithMultipleAnnotationValueSets()
277 stringType, in testMultibinderWithMultipleAnnotationTypeSets()
286 deSetKey, stringType, setOf(module), BOTH, false, 1, instance("D"), instance("E")); in testMultibinderWithMultipleAnnotationTypeSets()
303 Key.get(setOfString), stringType, setOf(module), BOTH, false, 1, instance("A")); in testMultibinderWithMultipleSetTypes() local
319 assertSetVisitor(Key.get(setOfString), stringType, setOf(module), BOTH, false, 0); in testMultibinderWithEmptySet() local
[all …]
/external/auto/common/src/test/java/com/google/auto/common/
DMoreTypesTest.java69 TypeMirror stringType = elements.getTypeElement(String.class.getCanonicalName()).asType(); in equivalence() local
87 types.getDeclaredType(setElement, types.getDeclaredType(setElement, stringType)); in equivalence()
92 DeclaredType containerOfString = types.getDeclaredType(container, stringType); in equivalence()
101 .addEquivalenceGroup(stringType) in equivalence()
118 .addEquivalenceGroup(types.getDeclaredType(mapElement, objectType, stringType)) in equivalence()
119 .addEquivalenceGroup(types.getDeclaredType(mapElement, stringType, objectType)) in equivalence()
120 .addEquivalenceGroup(types.getDeclaredType(mapElement, stringType, stringType)) in equivalence()
129 .addEquivalenceGroup(types.getWildcardType(stringType, null)) in equivalence()
131 .addEquivalenceGroup(types.getWildcardType(null, stringType)) in equivalence()
136 stringType, in equivalence()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/
DConstraintFormulaTest.java21 …private ResolvedType stringType = new ReferenceTypeImpl(new ReflectionTypeSolver().solveType(Strin… field in ConstraintFormulaTest
40 …onResult.empty().withConstraint(new TypeCompatibleWithType(typeSolver, stringType, inferenceVariab… in testExpressionCompatibleWithTypeReduce1()
44 …ductionResult.empty().withConstraint(new TypeSubtypeOfType(typeSolver, stringType, inferenceVariab… in testExpressionCompatibleWithTypeReduce1()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/util/
DClassUtilTest.java218 final JavaType stringType = TypeFactory.defaultInstance().constructType(String.class); in testDescs() local
219 assertEquals(stringExp, ClassUtil.getTypeDescription(stringType)); in testDescs()
228 final JavaType stringType = TypeFactory.defaultInstance().constructType(String.class); in testSubtypes() local
229 List<JavaType> supers = ClassUtil.findSuperTypes(stringType, Object.class, false); in testSubtypes()
232 supers = ClassUtil.findSuperTypes(stringType, Object.class, true); in testSubtypes()
233 assertEquals(Collections.singletonList(stringType), supers); in testSubtypes()
/external/golang-protobuf/reflect/protoreflect/
Dvalue_pure.go23 stringType const
43 return Value{typ: stringType, str: v}
Dvalue_union.go216 case stringType:
245 case stringType:
313 case stringType:
373 case boolType, int32Type, int64Type, uint32Type, uint64Type, stringType:
Dvalue_unsafe.go41 stringType = typeOf(*new(string)) var
77 return Value{typ: stringType, ptr: p.Data, num: uint64(len(v))}
Dvalue_equal.go58 case stringType:
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/reflect/
DTypeLiteralTest.java40 final Typed<String> stringType = new TypeLiteral<String>() {}; in testTyped() local
41 assertTrue(TypeUtils.equals(String.class, stringType.getType())); in testTyped()
/external/kotlinpoet/kotlinpoet/src/commonTest/kotlin/com/squareup/kotlinpoet/
DFunSpecTest.kt494 val stringType = STRING in functionWithContextReceiver() constant
496 .contextReceivers(stringType) in functionWithContextReceiver()
510 val stringType = STRING in functionWithMultipleContextReceivers() constant
514 .contextReceivers(stringType, intType, booleanType) in functionWithMultipleContextReceivers()
625 val stringType = String::class.asClassName() in functionParamMultipleLambdaParam() constant
626 …val lambdaType = LambdaTypeName.get(parameters = arrayOf(booleanType, stringType), returnType = un… in functionParamMultipleLambdaParam()
644 val stringType = String::class.asClassName() in functionParamMultipleLambdaParamNullableLambda() constant
646 .get(parameters = arrayOf(booleanType, stringType), returnType = unitType) in functionParamMultipleLambdaParamNullableLambda()
665 val stringType = String::class.asClassName().copy(nullable = true) in functionParamMultipleNullableLambdaParam() constant
667 .get(parameters = arrayOf(booleanType, stringType), returnType = unitType) in functionParamMultipleNullableLambdaParam()
/external/auto/value/src/test/java/com/google/auto/value/processor/
DBuilderRequiredPropertiesTest.java45 private TypeMirror stringType; field in BuilderRequiredPropertiesTest
50 stringType = compilationRule.getElements().getTypeElement("java.lang.String").asType(); in initTypes()
324 Stream.of(fakeProperty("string", stringType, /* hasDefault= */ false)), in fakeProperties()
334 .add(fakeProperty("stringWithDefault", stringType, /* hasDefault= */ true)) in fakePropertiesWithDefaults()
/external/auto/value/src/main/java/com/google/auto/value/extension/toprettystring/processor/
DToPrettyStringValidator.java80 TypeMirror stringType = elements.getTypeElement("java.lang.String").asType(); in validateMethod() local
81 if (!MoreTypes.equivalence().equivalent(method.getReturnType(), stringType)) { in validateMethod()
/external/ksp/api/src/main/kotlin/com/google/devtools/ksp/processing/
DKSBuiltIns.kt37 val stringType: KSType constant
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/
DMethodCallExprContextResolutionTest.java123 ResolvedReferenceTypeDeclaration stringType = typeSolver.solveType("java.lang.String"); in assertCanSolveGenericMethodCallCanInferFromArguments() local
126 argumentsTypes.add(new ReferenceTypeImpl(stringType, typeSolver)); in assertCanSolveGenericMethodCallCanInferFromArguments()
DClassOrInterfaceDeclarationContextResolutionTest.java399 …ResolvedType stringType = new ReferenceTypeImpl(new ReflectionClassDeclaration(String.class, typeS… in solveMethodWithMoreSpecializedParameter() local
401 …<ResolvedMethodDeclaration> ref = context.solveMethod("foo4", ImmutableList.of(stringType), false); in solveMethodWithMoreSpecializedParameter()
479 …ResolvedType stringType = new ReferenceTypeImpl(new ReflectionClassDeclaration(String.class, typeS… in solveMethodAsUsageWithMoreSpecializedParameter() local
481 … Optional<MethodUsage> ref = context.solveMethodAsUsage("foo4", ImmutableList.of(stringType)); in solveMethodAsUsageWithMoreSpecializedParameter()
/external/ksp/test-utils/src/main/kotlin/com/google/devtools/ksp/processor/
DBuiltInTypesProcessor.kt51 resolver.builtIns.stringType, in <lambda>()
/external/dagger2/javatests/dagger/internal/codegen/
DKeyFactoryTest.java106 XType stringType = processingEnv.requireType(String.class.getCanonicalName()); in forProvidesMethod_qualified() local
114 assertThat(key.type().xprocessing().getTypeName()).isEqualTo(stringType.getTypeName()); in forProvidesMethod_qualified()
/external/boringssl/src/util/fipstools/acvp/acvptool/acvp/
Dacvp.go479 stringType = reflect.TypeOf("") var
502 {Name: "Next", Type: stringType, Tag: `json:"next"`},
/external/cronet/tot/third_party/boringssl/src/util/fipstools/acvp/acvptool/acvp/
Dacvp.go479 stringType = reflect.TypeOf("") var
502 {Name: "Next", Type: stringType, Tag: `json:"next"`},
/external/cronet/stable/third_party/boringssl/src/util/fipstools/acvp/acvptool/acvp/
Dacvp.go479 stringType = reflect.TypeOf("") var
502 {Name: "Next", Type: stringType, Tag: `json:"next"`},

12