/external/llvm-project/clang/test/OpenMP/ |
D | declare_mapper_messages.cpp | 16 #pragma omp declare mapper(id: vec v) map(v.len) 20 #pragma omp declare mapper // expected-error {{expecte… 21 #pragma omp declare mapper { // expected-error {{expecte… 22 #pragma omp declare mapper( // expected-error {{expecte… 23 #pragma omp declare mapper(# // expected-error {{expecte… 24 #pragma omp declare mapper(v // expected-error {{unknown… 25 #pragma omp declare mapper(vec // expected-error {{expecte… 26 #pragma omp declare mapper(S v // expected-error {{unknown… 27 #pragma omp declare mapper(vec v // expected-error {{expecte… 28 #pragma omp declare mapper(aa: vec v) // expected-error {{expecte… [all …]
|
D | declare_mapper_messages.c | 9 #pragma omp declare mapper(id: struct vec v) map(v.len) // expected-error {{incompl… 13 #pragma omp declare mapper // expected-error {{expecte… 14 #pragma omp declare mapper { // expected-error {{expecte… 15 #pragma omp declare mapper( // expected-error {{expecte… 16 #pragma omp declare mapper(# // expected-error {{expecte… 17 #pragma omp declare mapper(struct v // expected-error {{expecte… 18 #pragma omp declare mapper(struct vec // expected-error {{expecte… 19 #pragma omp declare mapper(S v // expected-error {{unknown… 20 #pragma omp declare mapper(struct vec v // expected-error {{expecte… 21 #pragma omp declare mapper(aa:struct vec v) // expected-error {{expecte… [all …]
|
D | declare_mapper_ast_print.cpp | 31 #pragma omp declare mapper(id: vec v) map(v.len) 46 #pragma omp declare mapper(id: N1::vec v) map(v.len) 47 #pragma omp declare mapper(id: datin v) map(v.in) 59 #pragma omp declare mapper(default : N1::vec kk) map(kk.len) map(kk.data[0:2]) 61 #pragma omp declare mapper(dat<double> d) map(to: d.d) 73 #pragma omp declare mapper(id: struct foodat v) map(v.a) in foo() 74 #pragma omp declare mapper(idd: struct foodatchild v) map(v.k) in foo() 75 #pragma omp declare mapper(id: N1::vec v) map(v.len) in foo() 77 #pragma omp declare mapper(id: N1::vec v) map(v.len) in foo() 80 #pragma omp target map(mapper(id) alloc: fd) in foo() [all …]
|
D | declare_mapper_codegen.cpp | 87 #pragma omp declare mapper(id: C s) map(s.a, s.b[0:2]) 273 #pragma omp target map(mapper(id),tofrom: c) in foo() 294 #pragma omp target map(mapper(id),tofrom: c) nowait in foo() 312 #pragma omp target teams map(mapper(id),to: c) in foo() 323 #pragma omp target teams map(mapper(id),to: c) nowait in foo() 340 #pragma omp target enter data map(mapper(id),to: c) in foo() 375 #pragma omp target enter data map(mapper(id),to: c) nowait in foo() 389 #pragma omp target exit data map(mapper(id),from: c) in foo() 424 #pragma omp target exit data map(mapper(id),from: c) nowait in foo() 438 #pragma omp target update to(mapper(id): c) in foo() [all …]
|
D | declare_mapper_ast_print.c | 32 #pragma omp declare mapper(id: struct vec v) map(v.len) 37 #pragma omp declare mapper(id: struct vec v) map(v.len) 39 #pragma omp declare mapper(default : struct vec kk) map(kk.len) map(kk.data[0:2]) 41 #pragma omp declare mapper(struct dat d) map(to: d.d) 46 #pragma omp declare mapper(id: struct vec v) map(v.len) in main() 49 #pragma omp declare mapper(id: struct vec v) map(v.len) in main() 53 #pragma omp target map(mapper(id) alloc: vv) in main() 56 #pragma omp target map(mapper(default), from: dd[0:10]) in main() 59 #pragma omp target update to(mapper(id): vv) from(mapper(default): dd[0:10]) in main() 62 #pragma omp target update to(mapper(id) present: vv) from(mapper(default), present: dd[0:10]) in main() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/filter/ |
D | JsonIncludeOverrideTest.java | 58 ObjectMapper mapper = new ObjectMapper(); in testPropConfigOverridesForInclude() local 62 mapper.writeValueAsString(empty)); in testPropConfigOverridesForInclude() 65 mapper = new ObjectMapper(); in testPropConfigOverridesForInclude() 66 mapper.configOverride(Map.class) in testPropConfigOverridesForInclude() 69 mapper.writeValueAsString(empty)); in testPropConfigOverridesForInclude() 71 mapper = new ObjectMapper(); in testPropConfigOverridesForInclude() 72 mapper.configOverride(List.class) in testPropConfigOverridesForInclude() 75 mapper.writeValueAsString(empty)); in testPropConfigOverridesForInclude() 80 ObjectMapper mapper = new ObjectMapper(); in testOverrideForIncludeAsPropertyNonNull() local 84 mapper.writeValueAsString(nullValues)); in testOverrideForIncludeAsPropertyNonNull() [all …]
|
/external/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/mapper/ |
D | AbstractPathValueMapperTest.java | 3 package org.unicode.icu.tool.cldrtoicu.mapper; 29 FakeMapper mapper = new FakeMapper(); in testUngroupedConcatenation() local 30 mapper.addUngroupedResult("foo/bar", "one", "two"); in testUngroupedConcatenation() 31 mapper.addUngroupedResult("foo/baz", "other", "path"); in testUngroupedConcatenation() 32 mapper.addUngroupedResult("foo/bar", "three", "four"); in testUngroupedConcatenation() 33 IcuData icuData = mapper.addIcuData("foo"); in testUngroupedConcatenation() 42 FakeMapper mapper = new FakeMapper(); in testGrouping() local 43 mapper.addGroupedResult("foo/bar", "one", "two"); in testGrouping() 44 mapper.addGroupedResult("foo/baz", "other", "path"); in testGrouping() 45 mapper.addGroupedResult("foo/bar", "three", "four"); in testGrouping() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/jdk/ |
D | DateSerializationTest.java | 117 ObjectMapper mapper = new ObjectMapper(); in testDateISO8601() local 118 mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); in testDateISO8601() 120 serialize(mapper, judate(1970, 1, 1, 02, 00, 00, 0, "GMT+2"), in testDateISO8601() 122 serialize(mapper, judate(1970, 1, 1, 00, 00, 00, 0, "UTC"), in testDateISO8601() 126 serialize(mapper, judate(911, 1, 1, 00, 00, 00, 0, "UTC"), in testDateISO8601() 128 serialize(mapper, judate(87, 1, 1, 00, 00, 00, 0, "UTC"), in testDateISO8601() 130 serialize(mapper, judate(1, 1, 1, 00, 00, 00, 0, "UTC"), in testDateISO8601() 166 ObjectMapper mapper = new ObjectMapper(); in testDateISO8601_customTZ() local 167 mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); in testDateISO8601_customTZ() 168 mapper.setTimeZone(TimeZone.getTimeZone("GMT+2")); in testDateISO8601_customTZ() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/convert/ |
D | CoercePojosTest.java | 85 ObjectMapper mapper; in _testPOJOFromEmptyGlobalConfig() local 88 mapper = newJsonMapper(); in _testPOJOFromEmptyGlobalConfig() 89 mapper.coercionConfigDefaults().setCoercion(shape, CoercionAction.AsNull) in _testPOJOFromEmptyGlobalConfig() 91 assertNull(_verifyFromEmptyPass(mapper, json)); in _testPOJOFromEmptyGlobalConfig() 94 mapper = newJsonMapper(); in _testPOJOFromEmptyGlobalConfig() 95 mapper.coercionConfigDefaults().setCoercion(shape, CoercionAction.AsEmpty) in _testPOJOFromEmptyGlobalConfig() 97 Bean b = _verifyFromEmptyPass(mapper, json); in _testPOJOFromEmptyGlobalConfig() 101 mapper = newJsonMapper(); in _testPOJOFromEmptyGlobalConfig() 102 mapper.coercionConfigDefaults().setCoercion(shape, CoercionAction.TryConvert) in _testPOJOFromEmptyGlobalConfig() 104 assertNull(_verifyFromEmptyPass(mapper, json)); in _testPOJOFromEmptyGlobalConfig() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/vld/ |
D | BasicPTVTest.java | 86 ObjectMapper mapper = jsonMapperBuilder() in testAllowByBaseClass() local 91 final String json = mapper.writeValueAsString(BaseValueWrapper.withA(42)); in testAllowByBaseClass() 92 BaseValueWrapper w = mapper.readValue(json, BaseValueWrapper.class); in testAllowByBaseClass() 96 final String json2 = mapper.writeValueAsString(new NumberWrapper(Byte.valueOf((byte) 4))); in testAllowByBaseClass() 98 mapper.readValue(json2, NumberWrapper.class); in testAllowByBaseClass() 121 ObjectMapper mapper = jsonMapperBuilder() in testAllowByBaseClassPrefix() local 126 final String json = mapper.writeValueAsString(BaseValueWrapper.withA(42)); in testAllowByBaseClassPrefix() 127 BaseValueWrapper w = mapper.readValue(json, BaseValueWrapper.class); in testAllowByBaseClassPrefix() 131 final String json2 = mapper.writeValueAsString(new NumberWrapper(Byte.valueOf((byte) 4))); in testAllowByBaseClassPrefix() 133 mapper.readValue(json2, NumberWrapper.class); in testAllowByBaseClassPrefix() [all …]
|
D | ValidatePolymSubTypeTest.java | 271 … private DefTypeWrapper _roundTripDefault(ObjectMapper mapper, BaseValue input) throws Exception { in _roundTripDefault() argument 272 final String json = mapper.writeValueAsString(new DefTypeWrapper(input)); in _roundTripDefault() 273 return mapper.readValue(json, DefTypeWrapper.class); in _roundTripDefault() 276 …private AnnotatedWrapper _roundTripAnnotated(ObjectMapper mapper, BaseValue input) throws Exceptio… in _roundTripAnnotated() argument 277 final String json = mapper.writeValueAsString(new AnnotatedWrapper(input)); in _roundTripAnnotated() 278 return mapper.readValue(json, AnnotatedWrapper.class); in _roundTripAnnotated() 281 …private AnnotatedMinimalWrapper _roundTripAnnotatedMinimal(ObjectMapper mapper, BaseValue input) t… in _roundTripAnnotatedMinimal() argument 282 final String json = mapper.writeValueAsString(new AnnotatedMinimalWrapper(input)); in _roundTripAnnotatedMinimal() 283 return mapper.readValue(json, AnnotatedMinimalWrapper.class); in _roundTripAnnotatedMinimal() 292 private void _verifyBadDefaultValue(ObjectMapper mapper) throws Exception { in _verifyBadDefaultValue() argument [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ |
D | TestSubtypes.java | 202 ObjectMapper mapper = new ObjectMapper(); in testPropertyWithSubtypes() local 204 mapper.registerSubtypes(SubB.class, SubC.class, SubD.class); in testPropertyWithSubtypes() 205 String json = mapper.writeValueAsString(new PropertyBean(new SubC())); in testPropertyWithSubtypes() 206 PropertyBean result = mapper.readValue(json, PropertyBean.class); in testPropertyWithSubtypes() 213 ObjectMapper mapper = new ObjectMapper(); in testSubtypesViaModule() local 216 mapper.registerModule(module); in testSubtypesViaModule() 217 String json = mapper.writeValueAsString(new PropertyBean(new SubC())); in testSubtypesViaModule() 218 PropertyBean result = mapper.readValue(json, PropertyBean.class); in testSubtypesViaModule() 222 mapper = new ObjectMapper(); in testSubtypesViaModule() 229 mapper.registerModule(module); in testSubtypesViaModule() [all …]
|
D | TestPropertyTypeInfo.java | 86 ObjectMapper mapper = new ObjectMapper(); in testSimpleField() local 87 String json = mapper.writeValueAsString(new FieldWrapperBean(new StringWrapper("foo"))); in testSimpleField() 89 FieldWrapperBean bean = mapper.readValue(json, FieldWrapperBean.class); in testSimpleField() 97 ObjectMapper mapper = new ObjectMapper(); in testSimpleMethod() local 98 String json = mapper.writeValueAsString(new FieldWrapperBean(new IntWrapper(37))); in testSimpleMethod() 100 FieldWrapperBean bean = mapper.readValue(json, FieldWrapperBean.class); in testSimpleMethod() 108 ObjectMapper mapper = new ObjectMapper(); in testSimpleListField() local 111 String json = mapper.writeValueAsString(list); in testSimpleListField() 113 FieldWrapperBeanList result = mapper.readValue(json, FieldWrapperBeanList.class); in testSimpleListField() 124 ObjectMapper mapper = new ObjectMapper(); in testSimpleListMethod() local [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/module/ |
D | SimpleModuleTest.java | 205 ObjectMapper mapper = new ObjectMapper(); in testWithoutModule() local 208 mapper.writeValueAsString(new CustomBean("foo", 3)); in testWithoutModule() 216 mapper.readValue("{\"str\":\"ab\",\"num\":2}", CustomBean.class); in testWithoutModule() 232 ObjectMapper mapper = new ObjectMapper(); in testSimpleBeanSerializer() local 235 mapper.registerModule(mod); in testSimpleBeanSerializer() 236 assertEquals(quote("abcde|5"), mapper.writeValueAsString(new CustomBean("abcde", 5))); in testSimpleBeanSerializer() 241 ObjectMapper mapper = new ObjectMapper(); in testSimpleEnumSerializer() local 245 mapper.registerModules(mod); in testSimpleEnumSerializer() 246 assertEquals(quote("b"), mapper.writeValueAsString(SimpleEnum.B)); in testSimpleEnumSerializer() 251 ObjectMapper mapper = new ObjectMapper(); in testSimpleInterfaceSerializer() local [all …]
|
D | TestAbstractTypes.java | 89 ObjectMapper mapper = new ObjectMapper(); in testCollectionDefaulting() local 94 mapper.registerModule(mod); in testCollectionDefaulting() 95 Collection<?> result = mapper.readValue("[]", Collection.class); in testCollectionDefaulting() 101 ObjectMapper mapper = new ObjectMapper(); in testMapDefaultingBasic() local 105 mapper.registerModule(mod); in testMapDefaultingBasic() 106 Map<?,?> result = mapper.readValue("{}", Map.class); in testMapDefaultingBasic() 113 ObjectMapper mapper = new ObjectMapper(); in testDefaultingRecursive() local 120 mapper.registerModule(mod); in testDefaultingRecursive() 123 result = mapper.readValue("[ {} ]", Object.class); in testDefaultingRecursive() 129 result = mapper.readValue("{ \"x\": [ 3 ] }", Object.class); in testDefaultingRecursive() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/ |
D | TestTreeSerialization.java | 28 ObjectMapper mapper = new ObjectMapper(); in testSimpleViaObjectMapper() local 30 ObjectNode n = mapper.getNodeFactory().objectNode(); in testSimpleViaObjectMapper() 36 JsonGenerator jg = mapper.createGenerator(sw); in testSimpleViaObjectMapper() 37 mapper.writeTree(jg, n); in testSimpleViaObjectMapper() 39 Map<String,Object> result = (Map<String,Object>) mapper.readValue(sw.toString(), Map.class); in testSimpleViaObjectMapper() 59 ObjectMapper mapper = new ObjectMapper(); in testPOJOString() local 61 ObjectNode n = mapper.getNodeFactory().objectNode(); in testPOJOString() 62 n.set("pojo", mapper.getNodeFactory().pojoNode("abc")); in testPOJOString() 64 JsonGenerator jg = mapper.createGenerator(sw); in testPOJOString() 65 mapper.writeTree(jg, n); in testPOJOString() [all …]
|
D | BeanSerializerModifierTest.java | 259 ObjectMapper mapper = new ObjectMapper(); 260 mapper.registerModule(new SerializerModifierModule(new RemovingModifier("a"))); 262 assertEquals("{\"b\":\"b\"}", mapper.writeValueAsString(bean)); 267 ObjectMapper mapper = new ObjectMapper(); 268 mapper.registerModule(new SerializerModifierModule(new ReorderingModifier())); 270 assertEquals("{\"a\":\"a\",\"b\":\"b\"}", mapper.writeValueAsString(bean)); 275 ObjectMapper mapper = new ObjectMapper(); 276 …mapper.registerModule(new SerializerModifierModule(new BuilderModifier(new BogusBeanSerializer(17)… 278 assertEquals("17", mapper.writeValueAsString(bean)); 282 ObjectMapper mapper = new ObjectMapper(); [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ |
D | TestRootName.java | 33 ObjectMapper mapper = rootMapper(); in testRootViaMapper() local 34 String json = mapper.writeValueAsString(new Bean()); in testRootViaMapper() 36 Bean bean = mapper.readValue(json, Bean.class); in testRootViaMapper() 40 json = mapper.writeValueAsString(new RootBeanWithEmpty()); in testRootViaMapper() 42 RootBeanWithEmpty bean2 = mapper.readValue(json, RootBeanWithEmpty.class); in testRootViaMapper() 49 final ObjectMapper mapper = rootMapper(); in testRootViaMapperFails() local 52 mapper.readValue(aposToQuotes("{'notRudy':{'a':3}}"), Bean.class); in testRootViaMapperFails() 60 mapper.readValue(aposToQuotes("[{'rudy':{'a':3}}]"), Bean.class); in testRootViaMapperFails() 68 mapper.readValue(aposToQuotes("{}]"), Bean.class); in testRootViaMapperFails() 76 mapper.readValue(aposToQuotes("{'rudy':{'a':3}, 'extra':3}"), Bean.class); in testRootViaMapperFails() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/contextual/ |
D | TestContextualSerialization.java | 227 ObjectMapper mapper = new ObjectMapper(); in testMethodAnnotations() local 230 mapper.registerModule(module); in testMethodAnnotations() 231 …assertEquals("{\"value\":\"see:foobar\"}", mapper.writeValueAsString(new ContextualBean("foobar"))… in testMethodAnnotations() 238 ObjectMapper mapper = new ObjectMapper(); in testClassAnnotations() local 241 mapper.registerModule(module); in testClassAnnotations() 242 …assertEquals("{\"value\":\"Voila->xyz\"}", mapper.writeValueAsString(new BeanWithClassConfig("xyz"… in testClassAnnotations() 247 ObjectMapper mapper = new ObjectMapper(); in testWrappedBean() local 250 mapper.registerModule(module); in testWrappedBean() 251 …assertEquals("{\"wrapped\":{\"value\":\"see:xyz\"}}", mapper.writeValueAsString(new ContextualBean… in testWrappedBean() 257 ObjectMapper mapper = new ObjectMapper(); in testMethodAnnotationInArray() local [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/introspect/ |
D | TestNamingStrategyCustom.java | 176 ObjectMapper mapper = new ObjectMapper(); in testSimpleGetters() local 177 mapper.setPropertyNamingStrategy(new PrefixStrategy()); in testSimpleGetters() 178 assertEquals("{\"Get-key\":123}", mapper.writeValueAsString(new GetterBean())); in testSimpleGetters() 183 ObjectMapper mapper = new ObjectMapper(); in testSimpleSetters() local 184 mapper.setPropertyNamingStrategy(new PrefixStrategy()); in testSimpleSetters() 185 SetterBean bean = mapper.readValue("{\"Set-key\":13}", SetterBean.class); in testSimpleSetters() 192 ObjectMapper mapper = new ObjectMapper(); in testSimpleFields() local 193 mapper.setPropertyNamingStrategy(new PrefixStrategy()); in testSimpleFields() 194 String json = mapper.writeValueAsString(new FieldBean(999)); in testSimpleFields() 198 FieldBean result = mapper.readValue(json, FieldBean.class); in testSimpleFields() [all …]
|
/external/grpc-grpc/src/core/ext/filters/client_channel/ |
D | proxy_mapper.cc | 24 grpc_proxy_mapper* mapper) { in grpc_proxy_mapper_init() argument 25 mapper->vtable = vtable; in grpc_proxy_mapper_init() 28 bool grpc_proxy_mapper_map_name(grpc_proxy_mapper* mapper, in grpc_proxy_mapper_map_name() argument 33 return mapper->vtable->map_name(mapper, server_uri, args, name_to_resolve, in grpc_proxy_mapper_map_name() 37 bool grpc_proxy_mapper_map_address(grpc_proxy_mapper* mapper, in grpc_proxy_mapper_map_address() argument 42 return mapper->vtable->map_address(mapper, address, args, new_address, in grpc_proxy_mapper_map_address() 46 void grpc_proxy_mapper_destroy(grpc_proxy_mapper* mapper) { in grpc_proxy_mapper_destroy() argument 47 mapper->vtable->destroy(mapper); in grpc_proxy_mapper_destroy()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/ |
D | TestGenerics.java | 57 ObjectMapper mapper = new ObjectMapper(); in testSimpleNumberBean() local 58 NumberBean result = mapper.readValue("{\"number\":17}", NumberBean.class); in testSimpleNumberBean() 67 ObjectMapper mapper = new ObjectMapper(); in testGenericWrapper() local 68 Wrapper<SimpleBean> result = mapper.readValue in testGenericWrapper() 82 ObjectMapper mapper = new ObjectMapper(); in testGenericWrapperWithSingleElementArray() local 83 mapper.enable(DeserializationFeature.UNWRAP_SINGLE_VALUE_ARRAYS); in testGenericWrapperWithSingleElementArray() 85 Wrapper<SimpleBean> result = mapper.readValue in testGenericWrapperWithSingleElementArray() 101 ObjectMapper mapper = new ObjectMapper(); in testMultipleWrappers() local 104 Wrapper<Boolean> result = mapper.readValue in testMultipleWrappers() 109 Wrapper<String> result2 = mapper.readValue in testMultipleWrappers() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/creators/ |
D | TestValueInstantiator.java | 342 ObjectMapper mapper = new ObjectMapper(); in testCustomBeanInstantiator() local 343 mapper.registerModule(new MyModule(MyBean.class, new MyBeanInstantiator())); in testCustomBeanInstantiator() 344 MyBean bean = mapper.readValue("{}", MyBean.class); in testCustomBeanInstantiator() 351 ObjectMapper mapper = new ObjectMapper(); in testCustomListInstantiator() local 352 mapper.registerModule(new MyModule(MyList.class, new MyListInstantiator())); in testCustomListInstantiator() 353 MyList result = mapper.readValue("[]", MyList.class); in testCustomListInstantiator() 361 ObjectMapper mapper = new ObjectMapper(); in testCustomMapInstantiator() local 362 mapper.registerModule(new MyModule(MyMap.class, new MyMapInstantiator())); in testCustomMapInstantiator() 363 MyMap result = mapper.readValue("{ \"a\":\"b\" }", MyMap.class); in testCustomMapInstantiator() 377 ObjectMapper mapper = new ObjectMapper(); in testDelegateBeanInstantiator() local [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/filter/ |
D | ProblemHandlerTest.java | 240 ObjectMapper mapper = newJsonMapper() in testWeirdKeyHandling() local 242 IntKeyMapWrapper w = mapper.readValue("{\"stuff\":{\"foo\":\"abc\"}}", in testWeirdKeyHandling() 252 ObjectMapper mapper = newJsonMapper() in testWeirdNumberHandling() local 255 SingleValuedEnum result = mapper.readValue("3", SingleValuedEnum.class); in testWeirdNumberHandling() 261 ObjectMapper mapper = newJsonMapper() in testWeirdStringHandling() local 264 SingleValuedEnum result = mapper.readValue("\"B\"", SingleValuedEnum.class); in testWeirdStringHandling() 268 mapper = new ObjectMapper() in testWeirdStringHandling() 270 UUID result2 = mapper.readValue(quote("not a uuid!"), UUID.class); in testWeirdStringHandling() 276 ObjectMapper mapper = newJsonMapper() in testInvalidTypeId() local 278 BaseWrapper w = mapper.readValue("{\"value\":{\"type\":\"foo\",\"a\":4}}", in testInvalidTypeId() [all …]
|
/external/ltp/testscripts/ |
D | ltpdmmapper.sh | 25 files (libdevmapper and dmsetup). They are in the device-mapper 67 echo "0 10240 linear " $part1 "0" > ltp-dev-mapper-table1 68 echo "0 100000 linear " $part1 "0" > ltp-dev-mapper-table2 69 echo "0 100000 linear " $part2 "0" > ltp-dev-mapper-table3 70 echo "0 200000 striped 2 16 " $part1 "0" $part2 "0" > ltp-dev-mapper-table4 74 dmsetup create dm-test-1 ltp-dev-mapper-table1 75 dmsetup create dm-test-2 ltp-dev-mapper-table2 76 dmsetup create dm-test-3 ltp-dev-mapper-table3 77 dmsetup create dm-test-4 ltp-dev-mapper-table4 127 dmsetup create dm-test-1 ltp-dev-mapper-table1 [all …]
|