Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Geyer <debfx@fobos.de>2013-04-20 21:17:09 +0400
committerFelix Geyer <debfx@fobos.de>2013-04-30 00:31:50 +0400
commit0ec29b2354f8159986223ccf446c00ac72dec319 (patch)
tree63d3f7d4598ee3a6ca0434685ced80d31f2c09f9 /tests/data
parentf1bebe904a0e4842df5aeab9a027e1d99608c9ac (diff)
Raise error if we don't find exactly one root group.
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/BrokenTwoRootGroups.xml13
-rw-r--r--tests/data/BrokenTwoRoots.xml15
2 files changed, 28 insertions, 0 deletions
diff --git a/tests/data/BrokenTwoRootGroups.xml b/tests/data/BrokenTwoRootGroups.xml
new file mode 100644
index 000000000..b49865ae0
--- /dev/null
+++ b/tests/data/BrokenTwoRootGroups.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<KeePassFile>
+ <Root>
+ <Group>
+ <UUID>lmU+9n0aeESKZvcEze+bRg==</UUID>
+ <Name>Test</Name>
+ </Group>
+ <Group>
+ <UUID>AaUYVdXsI02h4T1RiAlgtg==</UUID>
+ <Name>Test</Name>
+ </Group>
+ </Root>
+</KeePassFile>
diff --git a/tests/data/BrokenTwoRoots.xml b/tests/data/BrokenTwoRoots.xml
new file mode 100644
index 000000000..3808981f9
--- /dev/null
+++ b/tests/data/BrokenTwoRoots.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<KeePassFile>
+ <Root>
+ <Group>
+ <UUID>lmU+9n0aeESKZvcEze+bRg==</UUID>
+ <Name>Test</Name>
+ </Group>
+ </Root>
+ <Root>
+ <Group>
+ <UUID>AaUYVdXsI02h4T1RiAlgtg==</UUID>
+ <Name>Test</Name>
+ </Group>
+ </Root>
+</KeePassFile>