/
ne1ghost
/
nix
Обзор
Документация
Войти
/
ne1ghost
/
nix
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/libstore-tests/ssh-store.cc
55 строк
1 KB
John Ericson
Move unit tests to the location Meson expects them to be
17 окт 2024, 22:42
17 окт 2024, 22:42
e65510d
Код
Авторство
О чём код?
// FIXME: Odd failures for templates that are causing the PR to break // for now with discussion with @Ericson2314 to comment out. #if 0 # include <gtest/gtest.h> # include "ssh-store.hh" namespace nix { TEST(SSHStore, constructConfig) { SSHStoreConfig config{ "ssh", "localhost", StoreConfig::Params{ { "remote-program", // TODO #11106, no more split on space "foo bar", }, }, }; EXPECT_EQ( config.remoteProgram.get(), (Strings{ "foo", "bar", })); } TEST(MountedSSHStore, constructConfig) { MountedSSHStoreConfig config{ "mounted-ssh", "localhost", StoreConfig::Params{ { "remote-program", // TODO #11106, no more split on space "foo bar", }, }, }; EXPECT_EQ( config.remoteProgram.get(), (Strings{ "foo", "bar", })); } } #endif