dump: fix testcases with changed config
also fix code formatting in generator and comments
@@ -89,6 +89,10 @@ TEST (Backend, SimpleBackend)
EXPECT_EQ (mountConfig.current ().getName (), "system/elektra/mountpoints/\\//config") << "name of element in keyset wrong";
EXPECT_EQ (mountConfig.current ().getString (), "") << "string of element in keyset wrong";
mountConfig.next ();
+ EXPECT_EQ (mountConfig.current ().getName (), "system/elektra/mountpoints/\\//config/fcrypt/textmode")
+ << "name of element in keyset wrong";
+ EXPECT_EQ (mountConfig.current ().getString (), "0") << "string of element in keyset wrong";
+ mountConfig.next ();
EXPECT_EQ (mountConfig.current ().getName (), "system/elektra/mountpoints/\\//config/path") << "name of element in keyset wrong";
EXPECT_EQ (mountConfig.current ().getString (), "abc") << "string of element in keyset wrong";
mountConfig.next ();
@@ -155,6 +159,10 @@ TEST (Backend, CrazyName)
<< "name of element in keyset wrong";
EXPECT_EQ (mountConfig.current ().getString (), "") << "string of element in keyset wrong";
mountConfig.next ();
+ EXPECT_EQ (mountConfig.current ().getName (), "system/elektra/mountpoints/\\/crazy\\/a..__.b\\/._.\\/._c__d/config/fcrypt/textmode")
+ << "name of element in keyset wrong";
+ EXPECT_EQ (mountConfig.current ().getString (), "0") << "string of element in keyset wrong";
+ mountConfig.next ();
EXPECT_EQ (mountConfig.current ().getName (), "system/elektra/mountpoints/\\/crazy\\/a..__.b\\/._.\\/._c__d/config/path")
<< "name of element in keyset wrong";
EXPECT_EQ (mountConfig.current ().getString (), "") << "string of element in keyset wrong";
@@ -236,6 +244,10 @@ TEST (Backend, SimpleBackendWithConf)
<< "name of element in keyset wrong";
EXPECT_EQ (mountConfig.current ().getString (), "") << "string of element in keyset wrong";
mountConfig.next ();
+ EXPECT_EQ (mountConfig.current ().getName (), "system/elektra/mountpoints/user\\/somewhere/config/fcrypt/textmode")
+ << "name of element in keyset wrong";
+ EXPECT_EQ (mountConfig.current ().getString (), "0") << "string of element in keyset wrong";
+ mountConfig.next ();
EXPECT_EQ (mountConfig.current ().getName (), "system/elektra/mountpoints/user\\/somewhere/config/globalConf")
<< "name of element in keyset wrong";
EXPECT_EQ (mountConfig.current ().getString (), "for everywhere") << "string of element in keyset wrong";
@@ -513,6 +525,10 @@ TEST (Backend, SimpleBackendWithUnderscore)
<< "name of element in keyset wrong";
EXPECT_EQ (mountConfig.current ().getString (), "") << "string of element in keyset wrong";
mountConfig.next ();
+ EXPECT_EQ (mountConfig.current ().getName (), "system/elektra/mountpoints/user\\/somewhere/config/fcrypt/textmode")
+ << "name of element in keyset wrong";
+ EXPECT_EQ (mountConfig.current ().getString (), "0") << "string of element in keyset wrong";
+ mountConfig.next ();
EXPECT_EQ (mountConfig.current ().getName (), "system/elektra/mountpoints/user\\/somewhere/config/global/conf")
<< "name of element in keyset wrong";
EXPECT_EQ (mountConfig.current ().getString (), "for backend") << "string of element in keyset wrong";
