mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
27 lines
494 B
C++
27 lines
494 B
C++
|
#include <gtest/gtest.h>
|
||
|
|
||
|
#include "legacy-ssh-store.hh"
|
||
|
|
||
|
namespace nix {
|
||
|
|
||
|
TEST(LegacySSHStore, constructConfig)
|
||
|
{
|
||
|
LegacySSHStoreConfig config{
|
||
|
"ssh",
|
||
|
"localhost",
|
||
|
StoreConfig::Params{
|
||
|
{
|
||
|
"remote-program",
|
||
|
// TODO #11106, no more split on space
|
||
|
"foo bar",
|
||
|
},
|
||
|
}};
|
||
|
EXPECT_EQ(
|
||
|
config.remoteProgram.get(),
|
||
|
(Strings{
|
||
|
"foo",
|
||
|
"bar",
|
||
|
}));
|
||
|
}
|
||
|
}
|