@Test void testDottedKeyOrder() throws Exception { TomlParseResult result1 = Toml.parse("[dog.\"tater.man\"]\ntype.name = \"pug\""); assertFalse(result1.hasErrors(), () -> joinErrors(result1)); TomlParseResult result2 = Toml.parse("a.b.c = 1\na.d = 2\n"); assertFalse(result2.hasErrors(), () -> joinErrors(result2)); TomlParseResult result3 = Toml.parse("# THIS IS INVALID\na.b = 1\na.b.c = 2\n"); assertTrue(result3.hasErrors()); }
public static TomlParseResult parse(String input) { return parse(input, TomlVersion.LATEST); }
Toml { public static TomlParseResult parse(String input) { return parse(input, TomlVersion.LATEST); } }
Toml { public static TomlParseResult parse(String input) { return parse(input, TomlVersion.LATEST); } private  Toml(); }
Toml { public static TomlParseResult parse(String input) { return parse(input, TomlVersion.LATEST); } private  Toml(); static TomlParseResult parse(String input); static TomlParseResult parse(String input, TomlVersion version); static TomlParseResult parse(Path file); static TomlParseResult parse(Path file, TomlVersion version); static TomlParseResult parse(InputStream is); static TomlParseResult parse(InputStream is, TomlVersion version); static TomlParseResult parse(Reader reader); static TomlParseResult parse(Reader reader, TomlVersion version); static TomlParseResult parse(ReadableByteChannel channel); static TomlParseResult parse(ReadableByteChannel channel, TomlVersion version); static List<String> parseDottedKey(String dottedKey); static String joinKeyPath(List<String> path); static String canonicalDottedKey(String dottedKey); static StringBuilder tomlEscape(String text); }
Toml { public static TomlParseResult parse(String input) { return parse(input, TomlVersion.LATEST); } private  Toml(); static TomlParseResult parse(String input); static TomlParseResult parse(String input, TomlVersion version); static TomlParseResult parse(Path file); static TomlParseResult parse(Path file, TomlVersion version); static TomlParseResult parse(InputStream is); static TomlParseResult parse(InputStream is, TomlVersion version); static TomlParseResult parse(Reader reader); static TomlParseResult parse(Reader reader, TomlVersion version); static TomlParseResult parse(ReadableByteChannel channel); static TomlParseResult parse(ReadableByteChannel channel, TomlVersion version); static List<String> parseDottedKey(String dottedKey); static String joinKeyPath(List<String> path); static String canonicalDottedKey(String dottedKey); static StringBuilder tomlEscape(String text);  }