mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 23:02:27 +00:00
27 lines
475 B
C++
27 lines
475 B
C++
|
#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",
|
||
|
}));
|
||
|
}
|
||
|
}
|