mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-12 13:17:18 +02:00
Indentation
This commit is contained in:
parent
7ebaf0252a
commit
936e7c66eb
1 changed files with 28 additions and 32 deletions
|
@ -107,7 +107,6 @@ namespace nix {
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(CanonPath, within) {
|
TEST(CanonPath, within) {
|
||||||
{
|
|
||||||
ASSERT_TRUE(CanonPath("foo").isWithin(CanonPath("foo")));
|
ASSERT_TRUE(CanonPath("foo").isWithin(CanonPath("foo")));
|
||||||
ASSERT_FALSE(CanonPath("foo").isWithin(CanonPath("bar")));
|
ASSERT_FALSE(CanonPath("foo").isWithin(CanonPath("bar")));
|
||||||
ASSERT_FALSE(CanonPath("foo").isWithin(CanonPath("fo")));
|
ASSERT_FALSE(CanonPath("foo").isWithin(CanonPath("fo")));
|
||||||
|
@ -116,7 +115,6 @@ namespace nix {
|
||||||
ASSERT_TRUE(CanonPath("/foo/bar/default.nix").isWithin(CanonPath("/")));
|
ASSERT_TRUE(CanonPath("/foo/bar/default.nix").isWithin(CanonPath("/")));
|
||||||
ASSERT_TRUE(CanonPath("/").isWithin(CanonPath("/")));
|
ASSERT_TRUE(CanonPath("/").isWithin(CanonPath("/")));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
TEST(CanonPath, sort) {
|
TEST(CanonPath, sort) {
|
||||||
ASSERT_FALSE(CanonPath("foo") < CanonPath("foo"));
|
ASSERT_FALSE(CanonPath("foo") < CanonPath("foo"));
|
||||||
|
@ -127,7 +125,6 @@ namespace nix {
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(CanonPath, allowed) {
|
TEST(CanonPath, allowed) {
|
||||||
{
|
|
||||||
std::set<CanonPath> allowed {
|
std::set<CanonPath> allowed {
|
||||||
CanonPath("foo/bar"),
|
CanonPath("foo/bar"),
|
||||||
CanonPath("foo!"),
|
CanonPath("foo!"),
|
||||||
|
@ -151,7 +148,6 @@ namespace nix {
|
||||||
ASSERT_FALSE(CanonPath("zzz").isAllowed(allowed));
|
ASSERT_FALSE(CanonPath("zzz").isAllowed(allowed));
|
||||||
ASSERT_TRUE (CanonPath("/").isAllowed(allowed));
|
ASSERT_TRUE (CanonPath("/").isAllowed(allowed));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
TEST(CanonPath, makeRelative) {
|
TEST(CanonPath, makeRelative) {
|
||||||
CanonPath d("/foo/bar");
|
CanonPath d("/foo/bar");
|
||||||
|
|
Loading…
Add table
Reference in a new issue