mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-13 06:16:55 -04:00
Clang-format
This commit is contained in:
parent
8bce415dd9
commit
272d726c73
@ -33,8 +33,8 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <folly/dynamic.h>
|
||||
#include <folly/Expected.h>
|
||||
#include <folly/dynamic.h>
|
||||
|
||||
#include "dwarfs/metadata_types.h"
|
||||
|
||||
|
@ -34,9 +34,9 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <folly/dynamic.h>
|
||||
#include <folly/Expected.h>
|
||||
#include <folly/Range.h>
|
||||
#include <folly/dynamic.h>
|
||||
|
||||
#include "dwarfs/metadata_types.h"
|
||||
|
||||
@ -69,9 +69,7 @@ class metadata_v2 {
|
||||
impl_->dump(os, detail_level, icb);
|
||||
}
|
||||
|
||||
folly::dynamic as_dynamic() const {
|
||||
return impl_->as_dynamic();
|
||||
}
|
||||
folly::dynamic as_dynamic() const { return impl_->as_dynamic(); }
|
||||
|
||||
static void get_stat_defaults(struct ::stat* defaults);
|
||||
|
||||
|
@ -500,4 +500,5 @@ block_manager::block_manager(logger& lgr, progress& prog, const config& cfg,
|
||||
filesystem_writer& fsw)
|
||||
: impl_(make_unique_logging_object<impl, block_manager_, logger_policies>(
|
||||
lgr, prog, cfg, os, fsw)) {}
|
||||
|
||||
} // namespace dwarfs
|
||||
|
@ -504,10 +504,8 @@ folly::dynamic metadata_<LoggerPolicy>::as_dynamic() const {
|
||||
struct ::statvfs stbuf;
|
||||
statvfs(&stbuf);
|
||||
|
||||
obj["statvfs"] = folly::dynamic::object
|
||||
("f_bsize", stbuf.f_bsize)
|
||||
("f_files", stbuf.f_files)
|
||||
("f_blocks", stbuf.f_blocks);
|
||||
obj["statvfs"] = folly::dynamic::object("f_bsize", stbuf.f_bsize)(
|
||||
"f_files", stbuf.f_files)("f_blocks", stbuf.f_blocks);
|
||||
|
||||
obj["root"] = as_dynamic(root_);
|
||||
|
||||
|
@ -24,8 +24,8 @@
|
||||
|
||||
#include <boost/program_options.hpp>
|
||||
|
||||
#include <folly/json.h>
|
||||
#include <folly/String.h>
|
||||
#include <folly/json.h>
|
||||
|
||||
#include "dwarfs/filesystem_v2.h"
|
||||
#include "dwarfs/logger.h"
|
||||
|
@ -150,12 +150,12 @@ char const* reference = R"(
|
||||
}
|
||||
)";
|
||||
|
||||
std::vector<std::string> versions {
|
||||
"0.2.0",
|
||||
"0.2.3",
|
||||
std::vector<std::string> versions{
|
||||
"0.2.0",
|
||||
"0.2.3",
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace
|
||||
|
||||
using namespace dwarfs;
|
||||
|
||||
@ -164,7 +164,8 @@ class compat : public testing::TestWithParam<std::string> {};
|
||||
TEST_P(compat, backwards_compatibility) {
|
||||
std::ostringstream oss;
|
||||
stream_logger lgr(oss);
|
||||
auto filename = std::string(TEST_DATA_DIR "/compat-v") + GetParam() + ".dwarfs";
|
||||
auto filename =
|
||||
std::string(TEST_DATA_DIR "/compat-v") + GetParam() + ".dwarfs";
|
||||
filesystem_v2 fs(lgr, std::make_shared<mmap>(filename));
|
||||
auto meta = fs.metadata_as_dynamic();
|
||||
auto ref = folly::parseJson(reference);
|
||||
|
Loading…
x
Reference in New Issue
Block a user