mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Everything that is a separate subproject should live in the subprojects
directory.
Progress on #2503
This reverts commit 451f8a8c19
.
21 lines
467 B
C++
21 lines
467 B
C++
#include <gtest/gtest.h>
|
|
|
|
#include "http-binary-cache-store.hh"
|
|
|
|
namespace nix {
|
|
|
|
TEST(HttpBinaryCacheStore, constructConfig)
|
|
{
|
|
HttpBinaryCacheStoreConfig config{"http", "foo.bar.baz", {}};
|
|
|
|
EXPECT_EQ(config.cacheUri, "http://foo.bar.baz");
|
|
}
|
|
|
|
TEST(HttpBinaryCacheStore, constructConfigNoTrailingSlash)
|
|
{
|
|
HttpBinaryCacheStoreConfig config{"https", "foo.bar.baz/a/b/", {}};
|
|
|
|
EXPECT_EQ(config.cacheUri, "https://foo.bar.baz/a/b");
|
|
}
|
|
|
|
} // namespace nix
|