/external/snakeyaml/src/test/java/org/yaml/snakeyaml/immutable/ |
D | ShapeImmutableTest.java | 16 package org.yaml.snakeyaml.immutable; 20 import org.yaml.snakeyaml.Util; 21 import org.yaml.snakeyaml.Yaml; 26 Yaml yaml = new Yaml(); in testColor() local 27 Color loaded = (Color) yaml.load("!!org.yaml.snakeyaml.immutable.Color BLACK"); in testColor() 32 Yaml yaml = new Yaml(); in testCode() local 33 Code loaded = (Code) yaml.load("!!org.yaml.snakeyaml.immutable.Code 123"); in testCode() 38 Yaml yaml = new Yaml(); in testSuperColor() local 39 SuperColor superColor = (SuperColor) yaml in testSuperColor() 40 … .load("!!org.yaml.snakeyaml.immutable.SuperColor [!!org.yaml.snakeyaml.immutable.Color BLACK]"); in testSuperColor() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/ |
D | DumperOptionsTest.java | 16 package org.yaml.snakeyaml; 25 import org.yaml.snakeyaml.emitter.Emitter; 26 import org.yaml.snakeyaml.error.YAMLException; 27 import org.yaml.snakeyaml.nodes.Tag; 28 import org.yaml.snakeyaml.representer.Representer; 34 Yaml yaml = new Yaml(options); in testDefaultStyle() local 35 assertEquals("abc\n", yaml.dump("abc")); in testDefaultStyle() 37 assertEquals("'123'\n", yaml.dump("123")); in testDefaultStyle() 40 yaml = new Yaml(options); in testDefaultStyle() 41 assertEquals("\"123\"\n", yaml.dump("123")); in testDefaultStyle() [all …]
|
D | EnumTest.java | 16 package org.yaml.snakeyaml; 27 import org.yaml.snakeyaml.constructor.Constructor; 33 Yaml yaml = new Yaml(); in testDumpEnum() local 34 String output = yaml.dump(Suit.CLUBS); in testDumpEnum() 35 assertEquals("!!org.yaml.snakeyaml.Suit 'CLUBS'\n", output); in testDumpEnum() 39 Yaml yaml = new Yaml(); in testDumpOverriddenToString() local 40 String output = yaml.dump(DumperOptions.FlowStyle.BLOCK); in testDumpOverriddenToString() 41 assertEquals("!!org.yaml.snakeyaml.DumperOptions$FlowStyle 'BLOCK'\n", output); in testDumpOverriddenToString() 47 Yaml yaml = new Yaml(options); in testDumpEnumArray() local 48 String output = yaml.dump(Suit.values()); in testDumpEnumArray() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/emitter/ |
D | EmitterTest.java | 16 package org.yaml.snakeyaml.emitter; 29 import org.yaml.snakeyaml.DumperOptions; 30 import org.yaml.snakeyaml.Yaml; 31 import org.yaml.snakeyaml.DumperOptions.FlowStyle; 32 import org.yaml.snakeyaml.DumperOptions.ScalarStyle; 33 import org.yaml.snakeyaml.events.DocumentStartEvent; 34 import org.yaml.snakeyaml.events.ImplicitTuple; 35 import org.yaml.snakeyaml.events.ScalarEvent; 36 import org.yaml.snakeyaml.events.StreamStartEvent; 47 Yaml yaml = new Yaml(options); in testWriteFolded() local [all …]
|
/external/llvm/docs/ |
D | YamlIO.rst | 2 YAML I/O 8 Introduction to YAML 11 YAML is a human readable data serialization language. The full YAML language 12 spec can be read at `yaml.org 13 <http://www.yaml.org/spec/1.2/spec.html#Introduction>`_. The simplest form of 14 yaml is just "scalars", "mappings", and "sequences". A scalar is any number 18 .. code-block:: yaml 27 .. code-block:: yaml 37 .. code-block:: yaml 53 verbose, so YAML offers an alternate syntax for sequences called a "Flow [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue9/ |
D | NopropTest.java | 16 package org.yaml.snakeyaml.issues.issue9; 22 import org.yaml.snakeyaml.Yaml; 27 …String yaml = "--- !!org.yaml.snakeyaml.issues.issue9.BeanHolder\nbean : !!org.yaml.snakeyaml.issu… in testOK01() local 28 Iterator<Object> docs = new Yaml().loadAll(yaml).iterator(); in testOK01() 36 …String yaml = "--- !!org.yaml.snakeyaml.issues.issue9.BeanHolder\nbean : !!org.yaml.snakeyaml.issu… in testOK02() local 37 Iterator<Object> docs = new Yaml().loadAll(yaml).iterator(); in testOK02() 45 …String yaml = "--- !!org.yaml.snakeyaml.issues.issue9.BeanHolder\nbean : !!org.yaml.snakeyaml.issu… in testOK03() local 46 Iterator<Object> docs = new Yaml().loadAll(yaml).iterator(); in testOK03() 54 …String yaml = "--- !!org.yaml.snakeyaml.issues.issue9.BeanHolder\nbean : !!org.yaml.snakeyaml.issu… in testOK04() local 55 Iterator<Object> docs = new Yaml().loadAll(yaml).iterator(); in testOK04() [all …]
|
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/ |
D | Yaml.java | 16 package org.yaml.snakeyaml; 29 import org.yaml.snakeyaml.DumperOptions.FlowStyle; 30 import org.yaml.snakeyaml.composer.Composer; 31 import org.yaml.snakeyaml.constructor.BaseConstructor; 32 import org.yaml.snakeyaml.constructor.Constructor; 33 import org.yaml.snakeyaml.emitter.Emitable; 34 import org.yaml.snakeyaml.emitter.Emitter; 35 import org.yaml.snakeyaml.error.YAMLException; 36 import org.yaml.snakeyaml.events.Event; 37 import org.yaml.snakeyaml.introspector.BeanAccess; [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue183/ |
D | NumberBeanTest.java | 16 package org.yaml.snakeyaml.issues.issue183; 20 import org.yaml.snakeyaml.Yaml; 29 Yaml yaml = new Yaml(); in testNumberBean() local 30 String dump = yaml.dump(number); in testNumberBean() 31 NumberBean loaded = yaml.loadAs(dump, NumberBean.class); in testNumberBean() 39 Yaml yaml = new Yaml(); in testNumberAsFloatInfinity() local 40 String dump = yaml.dump(number); in testNumberAsFloatInfinity() 41 NumberBean loaded = yaml.loadAs(dump, NumberBean.class); in testNumberAsFloatInfinity() 49 Yaml yaml = new Yaml(); in testNumberAsDoubleInfinity() local 50 String dump = yaml.dump(number); in testNumberAsDoubleInfinity() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/constructor/ |
D | BeanConstructorTest.java | 16 package org.yaml.snakeyaml.constructor; 22 import org.yaml.snakeyaml.DumperOptions; 23 import org.yaml.snakeyaml.Util; 24 import org.yaml.snakeyaml.Yaml; 25 import org.yaml.snakeyaml.error.YAMLException; 30 Yaml yaml = new Yaml(new Constructor(TestBean1.class)); in testPrimitivesConstructor() local 31 String document = Util.getLocalResource("constructor/test-primitives1.yaml"); in testPrimitivesConstructor() 32 TestBean1 result = (TestBean1) yaml.load(document); in testPrimitivesConstructor() 59 Yaml yamlToDump = new Yaml(options); in testPrimitivesConstructor() 61 TestBean1 result2 = (TestBean1) yaml.load(output); in testPrimitivesConstructor() [all …]
|
D | ClassTagsTest.java | 16 package org.yaml.snakeyaml.constructor; 23 import org.yaml.snakeyaml.TypeDescription; 24 import org.yaml.snakeyaml.Util; 25 import org.yaml.snakeyaml.Yaml; 26 import org.yaml.snakeyaml.error.YAMLException; 27 import org.yaml.snakeyaml.nodes.Tag; 28 import org.yaml.snakeyaml.representer.Representer; 42 assertEquals(Util.getLocalResource("constructor/car-with-tags.yaml"), new Yaml().dump(car)); in testDefaultRepresenter() 58 Yaml yaml = new Yaml(representer); in testDumpClassTag() local 59 String output = yaml.dump(car); in testDumpClassTag() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue124/ |
D | DumpTest.java | 16 package org.yaml.snakeyaml.issues.issue124; 20 import org.yaml.snakeyaml.DumperOptions; 21 import org.yaml.snakeyaml.DumperOptions.FlowStyle; 22 import org.yaml.snakeyaml.Yaml; 23 import org.yaml.snakeyaml.nodes.Tag; 28 Yaml yaml = new Yaml(); in testDumperOptionsSideEffect() local 30 String output0 = yaml.dump(bean); in testDumperOptionsSideEffect() 32 assertEquals("!!org.yaml.snakeyaml.issues.issue124.Bean124\na: aaa\nnumbers: [1, 2, 3]\n", in testDumperOptionsSideEffect() 34 String output1 = yaml.dumpAsMap(bean); in testDumperOptionsSideEffect() 37 String output2 = yaml.dump(bean); in testDumperOptionsSideEffect() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue82/ |
D | PropOrderInfluenceWhenAliasedInGenericCollectionTest.java | 16 package org.yaml.snakeyaml.issues.issue82; 27 import org.yaml.snakeyaml.TypeDescription; 28 import org.yaml.snakeyaml.Yaml; 29 import org.yaml.snakeyaml.constructor.Constructor; 30 import org.yaml.snakeyaml.nodes.Tag; 31 import org.yaml.snakeyaml.representer.Representer; 112 Yaml yaml = new Yaml(); in testAB() local 113 String dump = yaml.dump(customerAB); in testAB() 115 CustomerAB parsed = (CustomerAB) yaml.load(dump); in testAB() 134 Yaml yaml = new Yaml(); in testAB_Set() local [all …]
|
/external/snakeyaml/src/test/java/examples/ |
D | DumpExampleTest.java | 26 import org.yaml.snakeyaml.DumperOptions; 27 import org.yaml.snakeyaml.Yaml; 35 Yaml yaml = new Yaml(); in testDump() local 36 String output = yaml.dump(data); in testDump() 47 Yaml yaml = new Yaml(); in testDumpWriter() local 49 yaml.dump(data, writer); in testDumpWriter() 62 Yaml yaml = new Yaml(options); in testDumpMany() local 63 String result = yaml.dumpAll(docs.iterator()); in testDumpMany() 72 Yaml yaml = new Yaml(options); in testDumpCustomJavaClass() local 73 String output = yaml.dump(hero); in testDumpCustomJavaClass() [all …]
|
D | DiceExampleTest.java | 24 import org.yaml.snakeyaml.DumperOptions; 25 import org.yaml.snakeyaml.Yaml; 26 import org.yaml.snakeyaml.constructor.AbstractConstruct; 27 import org.yaml.snakeyaml.constructor.Constructor; 28 import org.yaml.snakeyaml.constructor.SafeConstructor; 29 import org.yaml.snakeyaml.nodes.Node; 30 import org.yaml.snakeyaml.nodes.ScalarNode; 31 import org.yaml.snakeyaml.nodes.Tag; 32 import org.yaml.snakeyaml.representer.Represent; 33 import org.yaml.snakeyaml.representer.Representer; [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue55/ |
D | YamlFieldAccessCollectionTest.java | 16 package org.yaml.snakeyaml.issues.issue55; 23 import org.yaml.snakeyaml.Util; 24 import org.yaml.snakeyaml.Yaml; 25 import org.yaml.snakeyaml.introspector.BeanAccess; 26 import org.yaml.snakeyaml.representer.Representer; 32 Yaml yamlDumper = constructYamlDumper(); in testYaml() 36 Yaml blogLoader = new Yaml(); in testYaml() 44 Yaml yaml = new Yaml(); in testYamlWithoutConfiguration() local 45 Map<String, Object> map = (Map<String, Object>) yaml.load(Util in testYamlWithoutConfiguration() 51 Yaml beanLoader = new Yaml(); in testYamlFailure() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue40/ |
D | DogFoodBeanTest.java | 16 package org.yaml.snakeyaml.issues.issue40; 22 import org.yaml.snakeyaml.Yaml; 29 Yaml yaml = new Yaml(); in testOwnBigDecimal() local 30 String text = yaml.dump(input); in testOwnBigDecimal() 32 assertEquals("!!org.yaml.snakeyaml.issues.issue40.DogFoodBean {decimal: !!float '5'}\n", in testOwnBigDecimal() 34 DogFoodBean output = (DogFoodBean) yaml.load(text); in testOwnBigDecimal() 41 Yaml yaml = new Yaml(); in testBigDecimalPrecision() local 42 String text = yaml.dump(input); in testBigDecimalPrecision() 44 assertEquals("!!org.yaml.snakeyaml.issues.issue40.DogFoodBean {decimal: 5.123}\n", text); in testBigDecimalPrecision() 45 DogFoodBean output = (DogFoodBean) yaml.load(text); in testBigDecimalPrecision() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue306/ |
D | UuidSupportTest.java | 16 package org.yaml.snakeyaml.issues.issue306; 19 import org.yaml.snakeyaml.DumperOptions; 20 import org.yaml.snakeyaml.Util; 21 import org.yaml.snakeyaml.Yaml; 22 import org.yaml.snakeyaml.nodes.Tag; 46 Yaml yaml = new Yaml(); in dumpAsString() local 47 yaml.addImplicitResolver(UUID_TAG, UUID_PATTERN, null); in dumpAsString() 48 String output = yaml.dump(str); in dumpAsString() 50 assertEquals(str + "\n", yaml.dump(uuid)); in dumpAsString() 55 Yaml yaml = new Yaml(); in loadAsUuid() local [all …]
|
/external/snakeyaml/src/test/java/examples/collections/ |
D | TypeSafeMapImplementationsTest.java | 27 import org.yaml.snakeyaml.Util; 28 import org.yaml.snakeyaml.Yaml; 44 Yaml yaml = new Yaml(); in testDumpMap() local 45 String output = yaml.dumpAsMap(bean); in testDumpMap() 47 String etalon = Util.getLocalResource("examples/map-bean-1.yaml"); in testDumpMap() 52 String output = Util.getLocalResource("examples/map-bean-1.yaml"); in testLoadMap() 54 Yaml beanLoader = new Yaml(); in testLoadMap() 116 Yaml yaml = new Yaml(); in testNoJavaBeanMap() local 117 String output = yaml.dump(list); in testNoJavaBeanMap() 119 String etalon = Util.getLocalResource("examples/map-bean-2.yaml"); in testNoJavaBeanMap() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/representer/ |
D | DumpStackTraceTest.java | 16 package org.yaml.snakeyaml.representer; 20 import org.yaml.snakeyaml.DumperOptions; 21 import org.yaml.snakeyaml.Util; 22 import org.yaml.snakeyaml.Yaml; 27 Yaml yaml = new Yaml(); in testJavaStackTrace() local 29 String result = yaml.dump(input); in testJavaStackTrace() 31 assertEquals(result, yaml.dump(yaml.load(result))); in testJavaStackTrace() 37 Yaml yaml = new Yaml(options); in testJavaStackTraceWithNoSpecialCharacters() local 41 String result = yaml.dump(input); in testJavaStackTraceWithNoSpecialCharacters() 43 assertEquals(result, yaml.dump(yaml.load(result))); in testJavaStackTraceWithNoSpecialCharacters() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/javabeans/ |
D | HouseTest.java | 16 package org.yaml.snakeyaml.javabeans; 25 import org.yaml.snakeyaml.DumperOptions; 26 import org.yaml.snakeyaml.DumperOptions.FlowStyle; 27 import org.yaml.snakeyaml.TypeDescription; 28 import org.yaml.snakeyaml.Util; 29 import org.yaml.snakeyaml.Yaml; 30 import org.yaml.snakeyaml.constructor.Constructor; 51 Yaml beanDumper = new Yaml(); in testDump1() 52 String yaml = beanDumper.dumpAsMap(house); in testDump1() local 53 String etalon = Util.getLocalResource("javabeans/house-dump1.yaml"); in testDump1() [all …]
|
/external/llvm/test/Object/Mips/ |
D | elf-mips64-rel.yaml | 3 # RUN: obj2yaml %t | FileCheck -check-prefix=YAML %s 16 # YAML: Relocations: 17 # YAML-NEXT: - Offset: 0x0000000000000014 18 # YAML-NEXT: Symbol: main 19 # YAML-NEXT: Type: R_MIPS_GPREL16 20 # YAML-NEXT: Type2: R_MIPS_SUB 21 # YAML-NEXT: Type3: R_MIPS_HI16 22 # YAML-NEXT: Addend: 4 23 # YAML-NEXT: - Offset: 0x000000000000001C 24 # YAML-NEXT: Symbol: main [all …]
|
/external/llvm/test/Object/ |
D | yaml2obj-elf-symbol-visibility.yaml | 3 # RUN: yaml2obj -format=elf %s | obj2yaml - | FileCheck --check-prefix YAML %s 51 # YAML: Symbols: 52 # YAML-NEXT: Global: 53 # YAML-NEXT: - Name: default1 54 # YAML-NEXT: Type: STT_OBJECT 55 # YAML-NEXT: Section: .data 56 # YAML-NEXT: Size: 0x0000000000000004 57 # YAML-NEXT: - Name: default2 58 # YAML-NEXT: Type: STT_OBJECT 59 # YAML-NEXT: Section: .data [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/extensions/compactnotation/ |
D | CompactConstructorErrorsTest.java | 16 package org.yaml.snakeyaml.extensions.compactnotation; 23 import org.yaml.snakeyaml.Util; 24 import org.yaml.snakeyaml.Yaml; 25 import org.yaml.snakeyaml.constructor.BaseConstructor; 26 import org.yaml.snakeyaml.error.YAMLException; 32 Yaml yaml = new Yaml(compact); in test1() local 33 String doc = Util.getLocalResource("compactnotation/error1.yaml"); in test1() 35 yaml.load(doc); in test1() 44 "org.yaml.snakeyaml.extensions.compactnotation"); in load() 45 Yaml yaml = new Yaml(compact); in load() local [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue73/ |
D | SetAsSequenceTest.java | 16 package org.yaml.snakeyaml.issues.issue73; 25 import org.yaml.snakeyaml.DumperOptions; 26 import org.yaml.snakeyaml.Util; 27 import org.yaml.snakeyaml.Yaml; 28 import org.yaml.snakeyaml.introspector.BeanAccess; 40 labels.add("YAML"); in testDump() 45 Yaml yaml = new Yaml(options); in testDump() local 46 String output = yaml.dump(blog); in testDump() 52 Yaml yaml = new Yaml(); in testLoad() local 53 yaml.setBeanAccess(BeanAccess.FIELD); in testLoad() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue67/ |
D | NonAsciiCharsInClassNameTest.java | 16 package org.yaml.snakeyaml.issues.issue67; 20 import org.yaml.snakeyaml.Util; 21 import org.yaml.snakeyaml.Yaml; 22 import org.yaml.snakeyaml.nodes.Tag; 23 import org.yaml.snakeyaml.representer.Representer; 24 import org.yaml.snakeyaml.scanner.ScannerException; 27 private String PREFIX = "!!org.yaml.snakeyaml.issues.issue67.NonAsciiCharsInClassNameTest$"; 33 Yaml yaml = new Yaml(); in testDump() local 34 String result = yaml.dump(obj); in testDump() 39 Yaml yaml = new Yaml(); in testLoad() local [all …]
|