/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() 39 Yaml yaml = new Yaml(); in testDumpOverriddenToString() local 40 String output = yaml.dump(DumperOptions.FlowStyle.BLOCK); in testDumpOverriddenToString() 47 Yaml yaml = new Yaml(options); in testDumpEnumArray() local 48 String output = yaml.dump(Suit.values()); in testDumpEnumArray() 57 Yaml yaml = new Yaml(options); in testDumpEnumList() local 59 String output = yaml.dump(list); in testDumpEnumList() [all …]
|
/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() 45 Yaml yaml = new Yaml(); in testSuperColorFail() local [all …]
|
D | MoreImmutablesTest.java | 16 package org.yaml.snakeyaml.immutable; 27 import org.yaml.snakeyaml.DumperOptions; 28 import org.yaml.snakeyaml.Yaml; 33 Yaml yaml = new Yaml(new ImmutablesRepresenter()); in testInsets() local 35 String dump = yaml.dump(insets); in testInsets() 37 Object loaded = yaml.load(dump); in testInsets() 42 Yaml yaml = new Yaml(new ImmutablesRepresenter()); in testAwtColor() local 44 String dump = yaml.dump(color); in testAwtColor() 46 Object loaded = yaml.load(dump); in testAwtColor() 51 Yaml yaml = new Yaml(new ImmutablesRepresenter()); in testRectangle() local [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 …]
|
D | EmitterMultiLineTest.java | 16 package org.yaml.snakeyaml.emitter; 24 import org.yaml.snakeyaml.DumperOptions; 25 import org.yaml.snakeyaml.DumperOptions.FlowStyle; 26 import org.yaml.snakeyaml.Yaml; 32 Yaml yaml = new Yaml(); in testWriteMultiLineLiteral() local 33 String output = yaml.dump(plain); in testWriteMultiLineLiteral() 36 String parsed = (String) yaml.load(output); in testWriteMultiLineLiteral() 51 Yaml yaml = new Yaml(options); in testWriteMultiLineList() local 52 String output = yaml.dump(list); in testWriteMultiLineList() 57 List<Object> parsed = (List<Object>) yaml.load(etalon); in testWriteMultiLineList() [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() 34 String output1 = yaml.dumpAsMap(bean); in testDumperOptionsSideEffect() 37 String output2 = yaml.dump(bean); in testDumperOptionsSideEffect() 43 Yaml yaml = new Yaml(); in testDumperDifferentTag() local [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/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/test/java/examples/ |
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 …]
|
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 …]
|
/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/llvm/unittests/Support/ |
D | YAMLParserTest.cpp | 34 yaml::Stream Stream(Input, SM); in ExpectParseError() 43 yaml::Stream Stream(Input, SM); in ExpectParseSuccess() 161 yaml::Stream Stream("test: |\n Hello\n World\n", SM); in TEST() 162 yaml::Document &Doc = *Stream.begin(); in TEST() 163 yaml::MappingNode *Map = cast<yaml::MappingNode>(Doc.getRoot()); in TEST() 165 cast<yaml::BlockScalarNode>(Map->begin()->getValue())->getValue(); in TEST() 191 yaml::Stream Stream(StringInArray, SM); in ExpectCanParseString() 192 yaml::SequenceNode *ParsedSequence in ExpectCanParseString() 193 = dyn_cast<yaml::SequenceNode>(Stream.begin()->getRoot()); in ExpectCanParseString() 195 = dyn_cast<yaml::ScalarNode>( in ExpectCanParseString() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | YAMLParserTest.cpp | 34 yaml::Stream Stream(Input, SM); in ExpectParseError() 43 yaml::Stream Stream(Input, SM); in ExpectParseSuccess() 161 yaml::Stream Stream("test: |\n Hello\n World\n", SM); in TEST() 162 yaml::Document &Doc = *Stream.begin(); in TEST() 163 yaml::MappingNode *Map = cast<yaml::MappingNode>(Doc.getRoot()); in TEST() 165 cast<yaml::BlockScalarNode>(Map->begin()->getValue())->getValue(); in TEST() 192 yaml::Stream Stream(StringInArray, SM); in ExpectCanParseString() 193 yaml::SequenceNode *ParsedSequence in ExpectCanParseString() 194 = dyn_cast<yaml::SequenceNode>(Stream.begin()->getRoot()); in ExpectCanParseString() 196 = dyn_cast<yaml::ScalarNode>( in ExpectCanParseString() [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/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 32 TestBean1 result = (TestBean1) yaml.load(document); in testPrimitivesConstructor() 61 TestBean1 result2 = (TestBean1) yaml.load(output); in testPrimitivesConstructor() 95 Yaml yaml = new Yaml(new Constructor(TestBean1.class)); in testCharacter() local 98 yaml.load(document); in testCharacter() [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/pyyaml/ |
D | PyTokensTest.java | 28 import org.yaml.snakeyaml.reader.StreamReader; 29 import org.yaml.snakeyaml.reader.UnicodeReader; 30 import org.yaml.snakeyaml.scanner.Scanner; 31 import org.yaml.snakeyaml.scanner.ScannerImpl; 32 import org.yaml.snakeyaml.tokens.AliasToken; 33 import org.yaml.snakeyaml.tokens.AnchorToken; 34 import org.yaml.snakeyaml.tokens.BlockEndToken; 35 import org.yaml.snakeyaml.tokens.BlockEntryToken; 36 import org.yaml.snakeyaml.tokens.BlockMappingStartToken; 37 import org.yaml.snakeyaml.tokens.BlockSequenceStartToken; [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue150/ |
D | YamlLoadAsIssueTest.java | 16 package org.yaml.snakeyaml.issues.issue150; 32 import org.yaml.snakeyaml.Yaml; 33 import org.yaml.snakeyaml.constructor.AbstractConstruct; 34 import org.yaml.snakeyaml.constructor.Constructor; 35 import org.yaml.snakeyaml.nodes.MappingNode; 36 import org.yaml.snakeyaml.nodes.Node; 37 import org.yaml.snakeyaml.nodes.NodeTuple; 38 import org.yaml.snakeyaml.nodes.ScalarNode; 39 import org.yaml.snakeyaml.nodes.SequenceNode; 40 import org.yaml.snakeyaml.nodes.Tag; [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; 33 Yaml yaml = new Yaml(); in testDump() local 34 String result = yaml.dump(obj); in testDump() 39 Yaml yaml = new Yaml(); in testLoad() local 40 Académico obj = (Académico) yaml.load(PREFIX + "Acad%C3%A9mico {id: 3, name: Foo bar}"); in testLoad() [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() 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() 45 DogFoodBean output = (DogFoodBean) yaml.load(text); in testBigDecimalPrecision() 52 Yaml yaml = new Yaml(); in testBigDecimalNoRootTag() local 53 String text = yaml.dumpAsMap(input); in testBigDecimalNoRootTag() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue29/ |
D | FlexibleScalarStyleTest.java | 16 package org.yaml.snakeyaml.issues.issue29; 23 import org.yaml.snakeyaml.DumperOptions; 24 import org.yaml.snakeyaml.DumperOptions.ScalarStyle; 25 import org.yaml.snakeyaml.Util; 26 import org.yaml.snakeyaml.Yaml; 27 import org.yaml.snakeyaml.nodes.Node; 28 import org.yaml.snakeyaml.nodes.ScalarNode; 29 import org.yaml.snakeyaml.representer.Representer; 38 Yaml yaml = new Yaml(options); in testLong() local 39 String result = yaml in testLong() [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; 44 Yaml yaml = new Yaml(); in testYamlWithoutConfiguration() local 45 Map<String, Object> map = (Map<String, Object>) yaml.load(Util in testYamlWithoutConfiguration() 61 Yaml yaml = new Yaml(); in testYamlDefaultWithFeildAccess() local 62 yaml.setBeanAccess(BeanAccess.FIELD); in testYamlDefaultWithFeildAccess() 64 String serialized = yaml.dump(original); in testYamlDefaultWithFeildAccess() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue311/ |
D | BooleanEnumTest.java | 16 package org.yaml.snakeyaml.issues.issue311; 19 import org.yaml.snakeyaml.DumperOptions; 20 import org.yaml.snakeyaml.Yaml; 21 import org.yaml.snakeyaml.constructor.Constructor; 22 import org.yaml.snakeyaml.nodes.Node; 23 import org.yaml.snakeyaml.nodes.NodeId; 24 import org.yaml.snakeyaml.nodes.ScalarNode; 25 import org.yaml.snakeyaml.nodes.Tag; 26 import org.yaml.snakeyaml.representer.Represent; 27 import org.yaml.snakeyaml.representer.Representer; [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue11/ |
D | YamlMapTest.java | 16 package org.yaml.snakeyaml.issues.issue11; 23 import org.yaml.snakeyaml.Yaml; 24 import org.yaml.snakeyaml.constructor.AbstractConstruct; 25 import org.yaml.snakeyaml.constructor.Constructor; 26 import org.yaml.snakeyaml.nodes.Node; 27 import org.yaml.snakeyaml.nodes.ScalarNode; 28 import org.yaml.snakeyaml.nodes.Tag; 29 import org.yaml.snakeyaml.representer.Represent; 30 import org.yaml.snakeyaml.representer.Representer; 34 Yaml yaml = new Yaml(new ExtendedConstructor(), new ExtendedRepresenter()); in testYaml() local [all …]
|