From f759884235b4594c4f960ea0c587697eef717665 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 22 Aug 2020 15:26:11 +0100 Subject: Clang-format --- unittests/service.cpp | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) (limited to 'unittests/service.cpp') diff --git a/unittests/service.cpp b/unittests/service.cpp index 207aa15..b1bab5a 100644 --- a/unittests/service.cpp +++ b/unittests/service.cpp @@ -1,10 +1,10 @@ #define BOOST_TEST_MODULE GitFS_Service -#include #include +#include -#include -#include #include "mockDefs.h" +#include +#include using namespace GitFS; using namespace GitFS::Test; @@ -12,10 +12,8 @@ using namespace AdHoc::literals; namespace btdata = boost::unit_test::data; -BOOST_DATA_TEST_CASE(no_repos, - btdata::make({ "", "testrepo", "no repo" }) * - btdata::make({ "", "testauth", "badkey" }), - repo, key) +BOOST_DATA_TEST_CASE( + no_repos, btdata::make({"", "testrepo", "no repo"}) * btdata::make({"", "testauth", "badkey"}), repo, key) { IceTray::DryIce s; Client c; @@ -24,14 +22,12 @@ BOOST_DATA_TEST_CASE(no_repos, BOOST_CHECK_THROW(c.s->connect(repo, key), NetFS::ConfigError); } -BOOST_DATA_TEST_CASE(badauth, - btdata::make({ "", "testAuth", "badkey" }), - key) +BOOST_DATA_TEST_CASE(badauth, btdata::make({"", "testAuth", "badkey"}), key) { IceTray::DryIce s({ - "--GitFS.testrepo.gitdir=%?"_fmt(rootDir.string()), - "--GitFS.testrepo.authkey=testauth", - "--GitFS.testrepo.commitish=7a0ccb40084c3ab31d9856e7f689c0514c28c930", + "--GitFS.testrepo.gitdir=%?"_fmt(rootDir.string()), + "--GitFS.testrepo.authkey=testauth", + "--GitFS.testrepo.commitish=7a0ccb40084c3ab31d9856e7f689c0514c28c930", }); Client c; BOOST_CHECK_NO_THROW(c.s->ice_ping()); @@ -42,10 +38,10 @@ BOOST_DATA_TEST_CASE(badauth, BOOST_AUTO_TEST_CASE(missing_repo) { IceTray::DryIce s({ - "--GitFS.missing.gitdir=/not/here", - "--GitFS.missing.commit=7a0ccb40084c3ab31d9856e7f689c0514c28c930", - "--GitFS.testrepo.gitdir=%?"_fmt(rootDir.string()), - "--GitFS.testrepo.commitish=7a0ccb40084c3ab31d9856e7f689c0514c28c931", + "--GitFS.missing.gitdir=/not/here", + "--GitFS.missing.commit=7a0ccb40084c3ab31d9856e7f689c0514c28c930", + "--GitFS.testrepo.gitdir=%?"_fmt(rootDir.string()), + "--GitFS.testrepo.commitish=7a0ccb40084c3ab31d9856e7f689c0514c28c931", }); Client c; BOOST_CHECK_NO_THROW(c.s->ice_ping()); @@ -53,4 +49,3 @@ BOOST_AUTO_TEST_CASE(missing_repo) BOOST_CHECK_THROW(c.s->connect("missing", {}), NetFS::ConfigError); BOOST_CHECK_THROW(c.s->connect("testrepo", {}), NetFS::ConfigError); } - -- cgit v1.2.3