mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36:16 +02: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",
|
||
|
}));
|
||
|
}
|
||
|
}
|