@Test void collapseSingle() { assertEquals(Map.of("k1/a", List.of("v1"), "k1/b", List.of("v2")), GitMlRules.stripDuplicatePrefixes(Map.of("k1/a/a", List.of("v1"), "k1/b/b", List.of("v2")))); }
static Map<String, List<String>> stripDuplicatePrefixes(Map<String, List<String>> fullList) { var trie = mapToTrie(fullList); var pruned = pruneEntry(trie); return trieToMap(pruned, ""); }
GitMlRules { static Map<String, List<String>> stripDuplicatePrefixes(Map<String, List<String>> fullList) { var trie = mapToTrie(fullList); var pruned = pruneEntry(trie); return trieToMap(pruned, ""); } }
GitMlRules { static Map<String, List<String>> stripDuplicatePrefixes(Map<String, List<String>> fullList) { var trie = mapToTrie(fullList); var pruned = pruneEntry(trie); return trieToMap(pruned, ""); }  }
GitMlRules { static Map<String, List<String>> stripDuplicatePrefixes(Map<String, List<String>> fullList) { var trie = mapToTrie(fullList); var pruned = pruneEntry(trie); return trieToMap(pruned, ""); }  static void main(String[] args); }
GitMlRules { static Map<String, List<String>> stripDuplicatePrefixes(Map<String, List<String>> fullList) { var trie = mapToTrie(fullList); var pruned = pruneEntry(trie); return trieToMap(pruned, ""); }  static void main(String[] args);  }